0

我正在使用这个.htaccess

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType image/x-icon "access plus 2692000 seconds"
  ExpiresByType image/jpeg "access plus 2692000 seconds"
  ExpiresByType image/png "access plus 2692000 seconds"
  ExpiresByType image/gif "access plus 2692000 seconds"
  ExpiresByType application/x-shockwave-flash "access plus 2692000 seconds"
  ExpiresByType text/css "access plus 2692000 seconds"
  ExpiresByType text/javascript "access plus 2692000 seconds"
  ExpiresByType application/x-javascript "access plus 2692000 seconds"
  ExpiresByType text/html "access plus 600 seconds"
  ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch "\\.(ico|jpe?g|png|gif|swf|css|js)$">
    Header set Cache-Control "max-age=2692000, public"
  </FilesMatch>
  <FilesMatch "\\.(x?html?|php)$">
    Header set Cache-Control "max-age=600, private, must-revalidate"
  </FilesMatch>
  Header unset ETag
  Header unset Last-Modified
</IfModule>

我的大部分文件都是从浏览器缓存中加载的,但有些会得到 304。

其中一些只是网络服务器目录中的符号链接,但不是全部。任何想法为什么会发生这种情况?

4

0 回答 0