Skip to main content

Command Palette

Search for a command to run...

TIL: cache-control is very inconsistent in different Browsers

Published
1 min read

Today a colleague started asking questions on cache-control and how to achieve consistent behaviour so that he can control it from Server Side

Then another colleague pointed out a StackOverflow thread where the answer makes sense but raises a question on why do these differences exist?

I think I still don't understand it completely after this revelation.

I suggested that we can use Service Workers to intercept all requests and implement better caching strategy there.

In response, another colleague pointed out that SWs are not worth the work and the support is inconsistent.

which lead me to here: https://caniuse.com/serviceworkers

caniuse.com_serviceworkers

Which again raises this question what is best approach to control caches from server?

More from this blog

P

Pankaj Patel - @heypankaj_

63 posts

Sharing my learnings and thoughts on Blogging, Personal Branding and Programming

TIL: cache-control is very inconsistent in different Browsers