: Ideal cache times for browser caching times for different file types? I am trying to improve my site's performance - and that includes caching. I found some great caching via .htaccess from
I am trying to improve my site's performance - and that includes caching.
I found some great caching via .htaccess from the boilerplate html5 template - but the cache times seem odd.
Does anyone have ideal or preferred caching times for their php/html, js, css, and image files?
More posts by @Ogunnowo487
1 Comments
Sorted by latest first Latest Oldest Best
There is no ideal length. It all depends on how often this content changes for you (and the files usually cached should not change often). I'm not in front my the code for my personal website but that content rarely changes so I have it set to be a week or two IIRC. If your content changes on a daily basis then a 24 hour expiration seems appropriate.
Basically base this decision on how often your content changes and what you feel comfortable with.
See a similar question on Stack Overflow.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.