Open mpaluchowski opened 5 years ago
That is not a bad idea, what about we add a suffix
option, where the user could specify '?[hash]
and default it to ''
?
On the next major release I'd even be willing to change the default behavior such that suffix
defaults to ?[hash]
.
On a side note, you can also use [hash:8]
(or whatever number) to truncate the hash, which might be useful even for the query string.
Yes, postfix
sounds very good. Certainly more versatile than an explicit hash
option.
And I din't know I could truncate the hash. Thanks!
I've since realized suffix
might be a better term, but yeah, great idea thanks!
Can we have a way to add the content hash as query string for the generated files?
Right now I can set:
which does the job, but creates lengthy and ugly URLs, that later make it difficult to review cache reports and similar, whereas if the hash was in a query string, it's often ignored or can be easily hidden in reports.
Ideally, I'd love the output to be similar to: