Mobile app version of vmapp.org
Login or Join
Yeniel560

: Regarding the first snippet, you should avoid using the ExpiresDefault line as that will cache all your pages as well which you probably don't want. The 'plus' keyword you mention is optional,

@Yeniel560

Regarding the first snippet, you should avoid using the ExpiresDefault line as that will cache all your pages as well which you probably don't want.

The 'plus' keyword you mention is optional, see the Apache docs for details. So that snippet is the same as the first but with the expiry time in seconds, not days.

The final snippet is a different caching method, but which basically has the same result. Some resources suggest Cache-control is better than Expires, I think because it plays more friendly with proxies. I'm not sure why the line for Javascript sets it to private since that is equally as valid set to public.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme