Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
3 posts Page 1 of 1
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).

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.
This is nice my friend... i get this a lot from my clients, especially those who use chrome browser.

I will definitely give this a try n get back to u my friend.

Regards,
GenXCoders
(Aashish)
Image
where innovation meets technology
genxcoders wrote: I will definitely give this a try n get back to u my friend.


Thank you, I am happy to hear, that the plugin is useful for you and others.

Feel free to contact me for suggestions.
3 posts Page 1 of 1
cron