Closed pensiero closed 7 years ago
@pensiero Good one. But then it always goes to the file, so it doesn't get cached in the browser anyway, right? Or am I missing something?
Well, if the cache is not enabled, the file is re-generated each time the AssetManager View Helper is invoked, so the last modified date is basically the current timestamp.
Is something like forcing the browser to always purge the cache of all the assets of the website. For development purpose I think it could be good, what do you think about?
I think that could be good, but also slow down the dev process. Perhaps make that configurable?
Yes, good idea, I can do it
Actually the view helper check that the cache is enabled and in case append the last modified date as query param to the filepath of the asset.
In development environment the cache is off, so the query param is not appended and the browser cache it.
What about appending the last modified query param every time?
Thanks