Website - Clearing Your Server Cache (includes cache-busting)

When clearing server caches, there is one main approach with a follow-up action you can take to make absolutely sure you are viewing an un-cached version of your pages.

Main action - Clear via WordPress/host cache button

  1. Log into WordPress Admin.
  2. Use your host or caching plugin’s “Clear/Flush Cache”
  3. Wait a few seconds, then reload your page.

Example using Autoptimize, a plugin that's loaded by default onto our newly launched sites:

Follow up - Cache-busting

Another action we can take is to "cache bust" the page using the URL. Some information on the internet is passed between pages of a website through the URL. Adding a fake one with a junk value ensures that the page coming back is the freshest that it's server can provide you with. To do this is very simple, given a URL for a page you; adding something like ?dc=1 will get the job done.

A full example would be changing [ http://www.example.com ] into [ http://www.example.com?dc=1

Always clear browser cache first, then server cache.

Is this article helpful?
0 0 0