2018-02-14 02:24 pm
I wanted to take a moment to talk about a scenario that happens very often when doing web development. The scenario can cause all sorts of headaches, pains, and lost time. Often, the resolution seems like some sort of voodoo magic was applied when suddenly everything "just works."
What just happened?
Before you get upset and wonder why we'd ever let this happen, please remember that cache is a great thing! Most of the time our files aren't changing, and cache prevents the users from having to reload everything each time they visit our pages. This speeds up the page and also limits the throughput that must take place on every web request.
So how can we make sure not to waste those hours again?
There are a couple of things we can do as web developers to make sure that this caching issue is not going to make our site appear to fail to update:
And how do I solve this problem on my local development machine?
As a local developer, however, there are two very easy solutions we can use to make sure that we don't get stuck with this problem any longer:
Finally, one thing I do is in the settings of the clear cache extension, I make sure to set the page to refresh:
Enjoy (and avoid the pain and headaches of bad cache in the future)!
Categories: Tips and Tricks, Web Development, Caching