Under this link you have some examples on how to set Cache-Control
headers in Apache2 server. So generally, there are three different approaches to have these headers set:
- Using both
mod_expires
+mod_headers
- Using only
mod_headers
- Using only
mod_expires
Are there any significant differences between them? Which one is the preferred one and why, or maybe it doesn't matter at all? What's the best way to set Cache-Control
headers in Apache2?