Current time: 08-12-2020, 02:27 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Etag/Last Modified - the numpty question I've always wanted to know.
02-04-2011, 06:52 PM
Post: #18
RE: Etag/Last Modified - the numpty question I've always wanted to know.
Hi,

- Use Cache-Control with high values (far future) on static assets; do versioning in the file name (e.g. all-20110204.css)
- No need to then also send an Expires, but it you need/must, give it the same 'value' as the Cache-Control
- Cache-Control beats Expires
- Cache-Control:Public is important, for reasons @Jesper_Mortensen outlines
- Use Last-Modified (not ETags) to enable conditional requests.
If you do the far future Cache-Control thing right, you will see very few to no conditional requests, because people have the file either in cache (and then use from cache) or not (200 response).
But why not, for that very small chance, send the Last-Modified?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Etag/Last Modified - the numpty question I've always wanted to know. - aaronpeters - 02-04-2011 06:52 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)