netPhotoGraphics / Website

This repository holds the unique items for the netPhotoGraphics website
2 stars 2 forks source link

Exploit browser caching #6

Closed By-oussef closed 5 years ago

sbillard commented 6 years ago

If you are going to make tickets you MUST provide details. I am not a mind reader. As it stands, this ticket is invalid.

By-oussef commented 5 years ago

According to the test of googlepage speed must add that das the file htacess

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
## EXPIRES CACHING ##
sbillard commented 5 years ago

Can you please provide your justification for the durations of each of these expires directives? One of the major issues I deal with with users is when browser caching prevents changes from appearing. Maybe these are specific to the website, but still a year, for instance, seems overkill and only likely to cause issues that are not immediately identifiable.

By-oussef commented 5 years ago

Hi. I do not have proof for each value is its values ​​that I retrieve on the internet. After you can put yours as defaults.

sbillard commented 5 years ago

Ok, I have put in the values I think correct.