我在htaccess文件中有以下代码:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} \.(gif|ico|jp?g|png|svg|webp|mp3|mp4|ogg|wav)$
RewriteCond %{HTTP_REFERER} !(wp-admin)
RewriteRule ^.*$ - [E=CACHE_MEDIA:1]
RewriteCond %{REQUEST_URI} \.(css|js|eot|otf|ttf|woff|woff2)$
RewriteCond %{HTTP_REFERER} !(wp-admin)
RewriteRule ^.*$ - [E=CACHE_ASSETS:1]
</IfModule>
<IfModule mod_headers.c>
Header set Cache-Control "max-age=31557600, public, must-revalidate" env=CACHE_MEDIA
Header set Cache-Control "max-age=2592000, private, must-revalidate" env=CACHE_ASSETS
</IfModule>
不幸的是,对于所有文件(包括HTML),我都有标题“ max-age = 2592000,私有的,必须重新验证”。。
在这种情况下我该怎么办?