Cachebuster – A Pro Tip for Bypassing Cache

Caching is a great way to improve website performance and minimize the load.

An ideal cache displays the cached version until the content changes and flushes the cache when there is a change. Yet, there may be cases where the cached version is not the most up-to-date one (if there is a DB error on the site or the caching is only time-based..).

And, we may want Uptime Robot to load the non-cached version on each request to make sure that the uptime/downtime is decided accordingly.

Here is a tiny feature (a pro tip) that can help bypassing cache.

Cachebuster

Uptime Robot will auto-replace the string:

  • *cachebuster*

in the querystring with a unique timestamp every time so that each request is unique.

As an example, if the website to be monitored is:

  • https://mywebsitetomonitor.com

We can use the URL as:

  • https://mywebsitetomonitor.com/?*cachebuster*

and the request will have a different querystring each time.

Hope this helps for a better uptime.

If you find Uptime Robot useful, help us spreading the word:

Wanna check the previous () post?

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>