Do you know the the following problem?
You change something on your CSS or javascript, but the customer can't see it. The reason is the cache mechanism of modern browser.
I have a solution for this problem. You can now use the new <cms:addhash>-Tag to add a timebased hash to a url. This forces the browser to reload a linked ressource (i.e. CSS oder Javascript).
The generated code looks like:
You can get more information on https://github.com/SimonWpt/addhash
or download the addon as a zip-file.
You change something on your CSS or javascript, but the customer can't see it. The reason is the cache mechanism of modern browser.
I have a solution for this problem. You can now use the new <cms:addhash>-Tag to add a timebased hash to a url. This forces the browser to reload a linked ressource (i.e. CSS oder Javascript).
- Code: Select all
<link rel="stylesheet" href="<cms:addhash>/assets/css/main.min.css</cms:addhash>">
The generated code looks like:
- Code: Select all
<link rel="stylesheet" href="/assets/css/main.min.css?20220407120139">
You can get more information on https://github.com/SimonWpt/addhash
or download the addon as a zip-file.