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.

Author: Naran Akisar
Country: Benin
Language: English (Spanish)
Genre: Finance
Published (Last): 4 April 2015
Pages: 64
PDF File Size: 3.18 Mb
ePub File Size: 7.19 Mb
ISBN: 368-3-55302-252-6
Downloads: 78309
Price: Free* [*Free Regsitration Required]
Uploader: Dailar

This ex;iresbytype your site faster to surf on the web. I do add this code to the htaccess file and that the only thing to do?

Learn how to use the. Would you like to answer one of these unanswered questions instead? I recommend reviewing your error logs such as apache error logs to narrow down the cause, since it can be anything stopping the theme directory from caching.

Using Apache mod_expires to control browser caching

Hi, We are having excel files in docroot which will be often updated. This article is so helpful to me because I was having a problem with WordPress caches, after following this article of course did some modification with the expiry time and the problem solved! The following shows the basic syntax for the ExpiresByType. The direct article to my problem wasn’t helpful at rxpiresbytype, this solution should be suggested there too!


Please note that Apache accepts these time units in both singular and plural, so you expirdsbytype use day and daysweek and weeksetc. Hello Prasana, Thank you for your question.

One being hard and ten being easy. If changes to a file are required then the filename must be changed to avoid caching issues, so be sure to set apaxhe carefully. Do I mess or change the Apache config file below or do I put something in my. More explanation o these settings will come later in this article.

Additional information,In my case proxy server is serving the file from the cache. Hello Dear All, we are having a wordpress site and we have the following.

Your name or email address: We also tried W3 PlugIn but having the same result. In order to add browser caching to your website, you will need to set the date for when the cache expires.

How to Add mod_expires to your .htaccess | InMotion Hosting

If you have any further questions, feel free to post them below. And, as expiresbytpye said, reverse CDN might introduce other problems. The server answer with the included script of jcart on a site artchern. OK so my htacess is correct and proper?


Alache a Comment Name: How easy was it to find the guide you were looking for? I suggest trying each one to see which gets you the best results, and you should be able to place the code at the top.

I need your inputs on below:. By clicking “Post Your Answer”, you acknowledge that you have read our expiresbytgpe terms of serviceprivacy policy and cookie policyand that your continued use of exxpiresbytype website is subject to these policies.

Hi John, Thanks for your response. One of the very few articles on the subject that explains concepts with enought detail. Hello Expiresbhtype, Apologies, but I’m not seeing the errors you’re referring to. That is not normal behavior, so it seems like it’s either something with your code or your server that is causing this.

The expiration date can set to be relative to either the time the source file was last modified, or to the time of the client access. Any suggestion for this? I spent some time researching this and asking around the office as was not able to find a good working solution.

Author: admin