What is the average cache time for static files?

3

What is the average cache expiration time for slightly updated static files? Are there techniques or recommendations that can help me in determining expiration time?

An example would be:

www.apple.com/scripts/libs/
www.apple.com/css/libs/

I want all files that are within the /libs with a longer expiration time to improve the performance of my site.

Any hints or references?

    
asked by anonymous 05.03.2015 / 04:48

1 answer

2

Assuming you are using an Apache server, you can refer to the Caching Guide ( link ), where some recommendations are found, like this:

The default expiry period for cached entities is one hour, however this
can be easily over-ridden by using the CacheDefaultExpire directive. 
This default is only used when the original source of the content does not
specify an expire time or time of last modification.

That is, you can override the recommendation, but you should be aware of the files that will determine a longer expiration - and analyze if the reason is worth it, otherwise you can compromise performance. In the cited documentation, there is a part that speaks 'What Can Be Cashed?' , where you can see more details about what you will save for a longer time.

You should also take into account the MCacheMaxObjectCount ( link ), which determines the number of elements you will store in cash. It does not seem to make sense, but at the moment you're going to determine different average times for each file.

I know only one article that talks about different caching techniques, and you can consult it here

a>. I hope it was helpful.

    
11.03.2015 / 19:34