DEV Community

Discussion on: Cache Busting a React App

Collapse
 
kilsen profile image
Kevin Ilsen

This is a really great solution and very well explained in this article! There's just one problem: location.reload(true) is deprecated! Calling location.reload() is still in the spec, but passing true to force the browser to get the page again and bypass the cache is deprecated. And because it's deprecated, some browsers are starting to ignore it. As a result, we are seeing an infinite loop where our browser keeps reloading the same page from cache. Have you thought about an alternative that will achieve the same result?

Collapse
 
kulshrestha97 profile image
Rajat Kulshreshtha

Hey, any updates on this?