0
내가 내 모든 JS와 CSS 파일의 PHP에서 작게하다/obfusctor/GZIP 스크립트를 생성 한 자바 스크립트 .PHP의 출력 헤더 만료 그러나 나는 만료되지 수 있지만 내 htaccess로이 넣어 가지고 :는
ExpiresActive On
ExpiresDefault A0
ExpiresByType text/css "access plus 2 hours"
ExpiresByType text/javascript "access plus 2 hours"
ExpiresByType application/x-javascript "access plus 2 hours"
Header append Cache-Control "proxy-revalidate"
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
추출기가 PHP 파일 인 경우에도 텍스트/javascript 및 텍스트/css으로 만료되기를 원합니다.
어떻게하면됩니까?
Thx!
좋아 해결Date: Sat, 20 Nov 2010 19:02:05 GMT
Server: Apache/2.2.11 (Win32) PHP/5.3.0
X-Powered-By: PHP/5.3.0
Content-Encoding: gzip
Last-Modified: Sat, 20 Nov 2010 16:03:24 GMT
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Content-Length: 181781
Pragma: no-cache
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/javascript; charset=UTF-8
200 OK
출력의 MIME 미디어 유형을 올바르게 지정 했습니까? – Gumbo