-
Apr 25th, 2017, 03:55 AM
#1
expires-headers? Our website has one!
I tried to test the speed of our website using https://gtmetrix.com and it is telling me the following result:
"There are 67 static components without a far-future expiration date."
And this is the recommendation.
But we have the following expires-headers:
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault A86400
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A900
</ifModule>
Why are we getting such result?
-
Apr 25th, 2017, 07:24 AM
#2
Re: expires-headers? Our website has one!
I believe if you are sending Cache-Control it will override mod_expires. If you load up one of the un-cached assets, what headers does it send?
-
Apr 26th, 2017, 12:26 AM
#3
Re: expires-headers? Our website has one!
Cache-Control? Is it also done in the .htaccess file? Sorry, I'm a bit noob on those things.
Here's a screenshot of a header of one of those assets:
Attachment 147049
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|