我不想缓存wp-admin?

时间:2019-11-14 15:32:21

标签: .htaccess browser-cache

我正在使用浏览器缓存和wp-admin页面缓存。我添加了“ expr =%{REQUEST_URI}!〜m#^ / wp-admin”,但仍在缓存。怎么了谢谢我的htaccess:

<filesMatch ".(ico|pdf|flv|jpg|svg|jpeg|png|gif|js|css|swf)$">
    Header set Cache-Control "max-age=604800, must-revalidate" "expr=%{REQUEST_URI} !~ m#^/wp-admin#"
</filesMatch>
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ## https://www.ozgurbilgi.net

0 个答案:

没有答案