You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to add get param with timestamp to every asset url, including CP, but I cannot do this in my module, because ImageOptimize rewrites urls later.
Maybe we can register custom ImageOptimize events while making changes in EVENT_DEFINE_URL & EVENT_DEFINE_THUMB_URL? Let's say ImageTransformer::EVENT_DEFINE_URL & ImageTransformer::EVENT_DEFINE_THUMB_URL
Additional context
Initial problem is that we have cache age set to one year in Amazon S3 storage. Once client "replace file" asset with the same filename through CP, browser cache keeps showing the previous file until manually refreshing browser cache. I decided to add dateUpdated timestamp to the end of the URL so it will not show cached version once replaced. But I have a problem described above. Maybe you can suggest another better solution.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I would like to add get param with timestamp to every asset url, including CP, but I cannot do this in my module, because ImageOptimize rewrites urls later.
My code in the module
Describe the solution you would like
I would like to see my changes in urls.
Describe alternatives you have considered
Maybe we can register custom ImageOptimize events while making changes in
EVENT_DEFINE_URL
&EVENT_DEFINE_THUMB_URL
? Let's sayImageTransformer::EVENT_DEFINE_URL
&ImageTransformer::EVENT_DEFINE_THUMB_URL
Additional context
Initial problem is that we have cache age set to one year in Amazon S3 storage. Once client "replace file" asset with the same filename through CP, browser cache keeps showing the previous file until manually refreshing browser cache. I decided to add
dateUpdated
timestamp to the end of the URL so it will not show cached version once replaced. But I have a problem described above. Maybe you can suggest another better solution.The text was updated successfully, but these errors were encountered: