plnkr / feedback

Feedback on Plunker
19 stars 11 forks source link

JS changes not reloaded after editing due to caching #480

Closed BernieSumption closed 4 years ago

BernieSumption commented 4 years ago

In a plunk with multiple files, the main HTML file is served with cache-control: no-cache, but the JS files are served with cache-control: private, max-age=14400. This means that JS files aren't reloaded after being edited.

Reproduction:

http://next.plnkr.co/edit/8TLVIKV0sgPQdthO

  1. Run the plunk and click on the button
  2. Edit main.js to change the alert message
  3. Click the button again, the old message will show
BernieSumption commented 4 years ago

Oops, looks like a duplicate of https://github.com/plnkr/feedback/issues/477

I'll close this and add the explanation to the first issue.