Cache Bust

Cache Bust
M2

TOTAL:
$0.00
Compatible With: Community 2.2

Tech Specifications

Current Version:
3.1.0
Type:
Stable Build
Updated:
31 May, 2018
Categories:
Extensions, Site Optimization, Performance
License Type:
Policy:

Overview

Ensure your customers are viewing the latest version of your images, CSS and JavaScript files including support for CDN and your customers web browser cache.

Other Extensions by Absolute Commerce Ltd.

Overview

Back to top

Absolute CacheBust is a free extension for Magento 2 that ensures your visitors are viewing the latest version of your images, CSS and JavaScript files. If you are using a CDN it can be used to effectively invalidate your CDN cache instantly. This extension will also bust any local versions of assets your visitors may have stored in their web browser cache.

When you upload new CSS, JavaScript files or images to your website without changing the filename, often your customers will already have the old version of those files stored in their browser cache or in a CDN cache. This can result in them seeing your old styles and functionality, or even worse causing issues where the website will not function correctly. With this extension a dynamic portion of the URL to your assets is introduced which can be changed at the push of a button, resulting in a brand new web address for that particular asset even if its filename has not changed. On deploying your new website content, by using this extension you can be sure your customers and your CDN (if you use one) will download the latest version of all of your assets afresh.

Features

  • immediately bust your CDN Cache.
  • immediately bust your visitors browser cache.
  • admin panel buttons on Cache Management page to manually bust the cache.
  • CLI commands to integrate Absolute CacheBust with your automated deployment.
  • ensure your customers are seeing the correct version of your images, JavaScript and CSS files.

Improvements over Magento 2 native 'Sign Static Files'

Magento 2 already has some functionality to bust cache for static files with the 'Sign Static Files' setting. The Absolute CacheBust extension provides this same functionality and more:

  • Absolute CacheBust supports media cache busting, whereas the native functionality does not.
  • the version value is stored in the Database rather than file, so better support for multiple servers.
  • with Absolute CacheBust the URL Template can be changed from /version12345/ to something else.
  • native Magento forces developer mode to always serve fresh content, which is not desirable.
  • CLI commands are included with Absolute CacheBust for automated deployment cache busting.

How does it work?

After some basic Web Server configuration the URL of your assets will include a new dynamic portion, eg. http://absolutecommerce.co.uk/static/version12345/some-stylesheet.css.

When you make changes to your images, JavaScript, CSS, etc., rather than waiting for your customers browser cache to expire, with this extension it is possible to immediately 'bust' the cache by automatically updating the /version12345/ segment of the URL.

If this segment becomes /version54321/, your visitors browser or the CDN will treat it as a brand new request that it does not have cached, so will be forced to download the latest version.

Need help or custom development?

If you need help with cache busting or some custom development work, please get in touch.

Release Notes

Back to top

3.1.0:

  • Compatible with CE: 2.2
  • Stability: Stable Build
  • Description:

    Added option to opt out of update notifications

3.0.0:

  • Compatible with CE: 2.2
  • Stability: Stable Build
  • Description:

    v3.0.0 of https://github.com/AbsoluteCommerce/Magento2-CacheBust

Support

Back to top
The best place to start if you need help with a specific extension is to contact the developer. All Magento developers have both a contact email and a support email listed.

Q & A

Back to top

Reviews

Back to top