The use of a query string like that hurts/eliminates much of beneficial caching (see e.g.
this article ). For a single small loader file (such as the widgetset loader bootstrap JavaScript) it can be ok, but it might be a bad idea to use it for a large number of larger files.
Unfortunately, truly forcing CSS refresh is hard, in part also because e.g. Chrome sometimes seems to ignore the information the server has given it about what caching it is allowed to do (at least for stylesheets) and caches CSS more aggressively.
Thank you for your response. I read that article and it recommends changing file’s name instead of using query string to version files, that will certainly force any browser to (re)load changed files. And that’s ok with me, but I couldn’t find a way to do that with Vaadin. Since I can’t tell Vaadin to use other files than “styles.css”. Is there a way to do that? I mean to tell Vaadin to use another file name for it’s main css?
The only workaround that I found was to change the directory, but of course the drawback of that is that the browser will reload everything and not just a few files that changed.
Thanks,
Gabriel
PD: I’m sorry for the delay in the response, I’m not getting email notifications from this forum.
Unfortunately, truly forcing CSS refresh is hard, [MyFedLoan]
(https://myfedloan.us/) in part also because e.g. Chrome sometimes seems to ignore the information the server has given it about what caching it is allowed to do (at least for stylesheets) and caches CSS more aggressively.