Make Browsers Cache Static Files With mod_expires On Apache2 (Debian Squeeze) This tutorial explains how you can configure Apache2 to set the Exp. Enable it with “a2enmod expires” if you’re using Ubuntu or Debian – afterwards restart Apache): mod_expires.c> ExpiresActive on. It might be as simple as missing one keyword that is causing your issue. ## EXPIRES CACHING ## mod_expires.c> ExpiresActive On ExpiresByType.
|Published (Last):||28 August 2018|
|PDF File Size:||5.73 Mb|
|ePub File Size:||20.26 Mb|
|Price:||Free* [*Free Regsitration Required]|
Can anyone please let us know how to fix this problem. The most useful guide I’ve met after a long research on the subject. First of all thank you so much your suggestion as it really worked.
Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff. Trae Abell 4 7. We are happy to help, but it is difficult to troubleshoot since there can be many causes.
If you can please provide account information or the. Alternatively you could only whitelist your subdomains like “subdomain. Add any required rules to the. In that code, you can see that the cache expiration time is set as 1 year for some file types and 1 month for others.
For information on clearing your browser cache, please see our article on How to clear your browser’s cache. If no expire module enabled then again a new expire date is set by the Heuristic expiration policies. I need your inputs on below: It gave me the proper file as this is the first time i am accessing.
php – Leverage browser caching, how on apache or .htaccess? – Stack Overflow
Hello Scott, If those static apsche are NOT going to change because they’re graphics generally tiny graphics, too or consistent files, then you should not have to worry about putting an expiration date on them. After that whatever i access how many time i accessed eventough modifying the file, it will always shows the old file from cache. This sets the age of the cache for spache documents other than those specified in the ExpiresByType for the site.
That is not normal behavior, so it seems like it’s either something with your code or your server that is causing this.
There are 6 static components without a far-future expiration date. Thank you for your interest in this question.
Using Apache mod_expires to control browser caching
Although 0 seconds may be more for development than production. To specify the specific times for each individual file type, you will want to use the previous code example.
Related Questions Here are a few questions related to this article that our customers have asked:.