ExpiresDefault "access plus 1 month" ... # media: images, video, audio ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg We are gettingAdd Expires headersscore F (0). Not a member yet? Any instructions in accesse, httpd don't give the decision.
It is possible to combine multiple time units, e.g. Of course you do! Ask a Question PaulAlford 74 Points 2014-07-23 9:59 pm I added the Basic expire code from this tutorial to my htaccess file and the GTMetrix Report is still saying "F" fail Which security measures make sense for a static web site?
If any references to those files are left over, it will still attempt to deliver the old files. I tested that my htaccess file was indeed working by willingly introducing an error in it (commented out the IfModule open tag). Visit Chat Linked 2 Enable gzip compression On Worpress Hosted on Godaddy Related 1How to reliably determine server stack of a site (eg .Net vs Open Source)0How does home web server How do I deal with my current employer not respecting my decision to leave?
An infinite chain of theories Unable to convert latex to wolfram alpha's text Are there 2-3m illegal migrants with criminal records in the USA? No, create an account now. What is the number of parameters for AIC if some coefficients are zero? Expiresactive On If i havent access the file before enabling the expire module then everything works fine.
I gather there might not be a good solution to this one... asked 5 years ago viewed 18726 times active 2 months ago Get the weekly newsletter! EDIT: One thing that might be causing this is that I haven't done any recompile of any sort, how can you recompile your apache installation and check if mod_expires is properly Thank you all for helping me in resolving this issue. :) Regards, Rasheed.
You may have to register before you can post: click the register link above to proceed. https://www.digitalocean.com/community/questions/mod_expires-is-active-but-my-server-isn-t-caching-images How to kick users from Windows Server 2012R2 Do you still gain the magical benefits of a shield when wearing but not wielding it? Ifmodule Mod_expires.c Not Working Reply Rasheed n/a Points 2014-10-15 10:59 pm Hello Arnel, The configuration which is given by Scott is working. Mod_expires Example Kindest Regards, Scott M Reply Rasheed n/a Points 2014-10-14 12:02 am
So in my case the only soultion is we have to wait till the expire date which is there
How relevant is retina.js to my web projects? Do any of the following actions show up in a credit report? Although 0 seconds may be more for development than production. Is it better practice to wrap Expires lines in ifmodule just in case, or not wrap to avoid tasking the server with the check?
Restart Apache after your changes: /etc/init.d/apache2 restart Instead of using FilesMatch and ExpiresDefault directives, you could also use the ExpiresByType directice and set an Expires header (plus the max-age directive of Ifmodule Mod_headers C Do they affect credit score? For that, i enabled the use of htaccess in apache2.conf.
It may be possible to pull the resources periodically and store them on your server, but it is almost like a reverse cdn setup, and can cause other problems. Would you like to ask a question about this page? http://www.google-analytics.com/ga.js http://wd-edge.sharethis.com/button/getAllAppDefault.esi... Html Cache Control Example How do I add a node ID as class to thetag?
Reply Scott n/a Points 2015-04-23 8:50 am OK so my htacess is correct and proper? No changes needed or reccomended? Thanks, Chris Reply John-Paul Staff 25,852 Points 2015-11-13 11:37 am Hello Chris, Thank you for contacting us. I do not issue any guarantee that this will work for you! 1 Preliminary Note I'm assuming you have a working Apache setup on your Debian Squeeze server, e.g.