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
@ktuite encountered an issue during local development whereby Chrome would not reload an updated .js file. The file was not reloaded even after a hard refresh. As a result, a component did not reflect the latest changes. From Chrome devtools, it looked like the .js file was not requested: it was loaded from disk cache.
Right now, our development nginx.conf only sets Cache-Control for index.html, which matches what happens in production. In production, .js filenames contain a hash, which works for cache-busting, but it looks like that isn't the case in development. Given that, I think we should consider setting Cache-Control for .js files (and probably CSS files?) in the development nginx.conf.
The text was updated successfully, but these errors were encountered:
@ktuite encountered an issue during local development whereby Chrome would not reload an updated .js file. The file was not reloaded even after a hard refresh. As a result, a component did not reflect the latest changes. From Chrome devtools, it looked like the .js file was not requested: it was loaded from disk cache.
Right now, our development
nginx.conf
only setsCache-Control
forindex.html
, which matches what happens in production. In production, .js filenames contain a hash, which works for cache-busting, but it looks like that isn't the case in development. Given that, I think we should consider settingCache-Control
for .js files (and probably CSS files?) in the developmentnginx.conf
.The text was updated successfully, but these errors were encountered: