When using a service like Cloudflare, assets are heavily cached. By default, the cache can be broken by a different query string. Some ideas for this package to help:
Ability to File::publicUrl() to always add ?v=<field> to the url
checksum/timestamp/filesize
Have File::publicUrl(), File::temporaryUrl() and Image::transformUrl() return Zenstruck\Uri\ParsedUri (instead of a string). This will allow easily adjusting the query parameters. Example:
When using a service like Cloudflare, assets are heavily cached. By default, the cache can be broken by a different query string. Some ideas for this package to help:
File::publicUrl()
to always add?v=<field>
to the urlFile::publicUrl()
,File::temporaryUrl()
andImage::transformUrl()
returnZenstruck\Uri\ParsedUri
(instead of a string). This will allow easily adjusting the query parameters. Example: