Skip to content

Don't cache index.html

Summary of Changes

index.html was being cached by browsers, which meant that if we pushed out an update to the front-end code it wouldn't get picked up unless the user did a hard refresh (or hadn't opened the dashboard recently enough for the file to be cached).

I've added two headers to the response to that endpoint that instruct browsers to check for updates to the file each time the page is loaded. The file is only 344 bytes so this shouldn't cause any performance issues.

Checklist

  • The MR has a clear and concise title
  • Code is self-documented and follows style guidelines.
  • Automated tests are written and pass successfully.
  • Regression tests (e.g. manually triggered system tests, manual GUI/tool tests, ...) are performed to make sure the MR does not break anything (when applicable)
  • Readme file is present and up-to-date.

Documentation Updates

Additional Notes

Closes #17 (closed)

Merge request reports