仍有304过期标题

时间:2013-02-22 14:27:45

标签: javascript http apache2

我正在使用此.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。

其中一些只是webserver目录中的符号链接,但不是全部。 任何想法为什么会这样?

0 个答案:

没有答案