我使用此配置激活mod_expires.c:
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 year"
ExpiresByType appliction/x-javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/pdf "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 day"
</IfModule>
## EXPIRES CACHING ##
效果很好,一切都很好。然而,由于它的活跃一些客户告诉我他们在登录时从另一个客户获得了另一个帐户。我无法重现我的电脑登录中的错误工作完全正常。
任何人都能得到线索?感谢答案 0 :(得分:0)
在你的.htaccess结束时试试这个:
<filesMatch "\.(php)$">
ExpiresActive Off
</filesMatch>