bnomei / kirby3-fingerprint

File Method and css/js helper to add hash to files
https://forum.getkirby.com/t/kirby-3-fingerprint-asset-cachebuster/23576
MIT License
37 stars 3 forks source link

Can't see hash or query #10

Closed illycz closed 5 years ago

illycz commented 5 years ago

I'm trying you great plugin, but I haven't hashes or queries on assets.

I call it within your function <?= Bnomei\Fingerprint::css('assets/stylesheets/main.css') ?> I have disabled debug, and cache.

Plugin working, when I test https option, protocol is changed, but hashes or queries are missing.

Thanks for any suggestion

bnomei commented 5 years ago

i presume you are using most recent version?

have you tried removing the cache folder the plugin creates? you can just delete it.

the file „assets/stylesheets/main.css“ does exist right? the query can only be created for files that can be found and modification date checked.

illycz commented 5 years ago

Sorry I switchet to https://github.com/bvdputte/kirby-fingerprint which is good enought to me.

bnomei commented 5 years ago

to bad. so i do not know what went wrong. but it works with the other plugin and the same asset?

illycz commented 5 years ago

Yes, it works. Next week I will try remove cached folder and send you feedback.

illycz commented 5 years ago

Still the same, also when I delete the bnomei/fingerprint folders...

Kirby 3.2.3 Your plugin installed throu composer, version 3.0.1

bnomei commented 5 years ago

i added some more unittests to check if hash gets created for css and js files. everything seems alright. i am out of ideas unless i can replicate the error. i would need the related

i am not sure what happens if you have more than one cachebusting plugin installed. all others override the css/js helpers. my plugin is just calling them but it might mess up stuff. the other plugins might trim away the query string.

illycz commented 5 years ago
bnomei commented 5 years ago

'bnomei.fingerprint.query' => false, was the cuplrit. thanks. it should be fixed in 3.0.2. 👋