Pankaj Patel

Pankaj Patel

TIL: cache-control is very inconsistent in different Browsers

Subscribe to my newsletter and never miss my upcoming articles

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: caniuse.com/serviceworkers

caniuse.com_serviceworkers

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

#2articles1week#optimization#web-development#caching
 
Share this