Как я могу узнать, что включено кэширование в браузере Leverage? - PullRequest
1 голос
/ 03 октября 2011

Я пытаюсь установить дату истечения срока действия на изображениях / js / css ext .. на моем сайте, потому что я вижу в инструменте, который я использую Скорость страницы , что это поможет производительности:

The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources:

http://somesite.com/images/chat/footer_btn_chat_on.png (expiration not specified)
http://somesite.com/images/footer.jpg (expiration not specified)
http://somesite.localhost/inc/cache/all.js (expiration not specified)

Итак, я добавил это в htaccess и обновил страницу, но все равно (срок действия не указан):

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 2 days"
ExpiresByType image/gif "access plus 60 days"
ExpiresByType image/jpg "access plus 60 days"
ExpiresByType image/png "access plus 60 days"
ExpiresByType application/x-javascript "access plus 60 days"
ExpiresByType text/css "access plus 60 days"
ExpiresByType image/x-icon "access plus 360 days"
</IfModule>

Нужно ли что-то включать или есть способ получитьэто на работу?

...