stylesheet.css
, how should we generate hash values if we want to include a custom.css
file?stylesheet.css
, how should we generate hash values if we want to include a custom.css
file?$hash = sprintf('%08x', crc32(file_get_contents('my_css_file')));
Code: Select all
sha1sum -b custom.css | cut -c 1-8
^ This.
Thanks, was able to find it very easily.
I understand the asset versioning aspect, but I like to follow phpBB's approach. It's a quick I've had ever since I started using the software.PlanetStyles.net wrote: ↑Sat Aug 08, 2020 12:16 amAnyone reading this thread shouldn't feel obliged to over-complicate this and replicate phpBB's approach of using checksums.
When you purge the cache or other actions like updating the version is incremented, in this case 123.
<link href="./styles/prosilver/theme/stylesheet.css?assets_version=123" rel="stylesheet">
@import url("normalize.css?hash=e6c08715");
hash=
but it could be anything. hash=
.No need to use hash values. You can go back to using (?v=3.3) if you want, or anything else.Dan Stylez wrote: ↑Sun Aug 09, 2020 10:52 amOoo this looks messy, beyond the scope of my realm, I retire from styles and put more time into my homebrew lockdown hobby in the garage while listening to reggae and playing Brian Lara cricket.
Thank you for the clarification
Is there an answer?
Css Hash Tool
- Memories of phpBB 3.0.14Let me save you some time. Pretty much everything you posted is wrong so you should just log out and forget about it.