Is it possible to create (if generate the site) an additional hash at the end of the files? like an cms system who caches all these things? (example: css/mystyle6ztetgdu2kds7832.css)
The way I understand you, you want to reload the CSS file every time? Did you try removing all the stuff you posted of your .htaccess? If it’s just about the css files then remove the css| part of your code.
This sound verry good! My hope is that the server understands a change of the file. It’s crazy, but on some devices (without private mode, or manually cache cleaning, the css style stays does’nt change, same with jpg) is it better to put all “dynamic css” files to the assets folder?
It works! How often will hugo generate the cash new? I’ve edit the css file, but the hash is the same. Are they settings to change that? After each editing?
Is this all in the cache part of the config file? Best Value for that eg. maxAge = -1 ?
Hi,
if i edit an image and save this image with the same name etc. sometimes the webbrowser does‘nt register that. so some people have the same image like the last visit. (if they don‘t clear rhe cache of there browser).
Do i think here in a wrong way? Is this again more a problem of the headers? the cache control?
Not sure if you’re overthinking or I’m not thinking enough.
The fingerprint can also be used in resources like images. Processed images will also be named like image_hu3d03a01dcc18bc5be0e67db3d8d209a6_1055507_1200x600_fill_q75_box_smart1.jpg.
AFAIK, there’s nothing more on Hugo side to prevent cache problems. ¯_(ツ)_/¯