Skip to content

Conversation

@mauriceyap
Copy link
Collaborator

In the Lookout UI web server, the HTTP response headers preventing index.html from being served are only served when the document is accessed directly i.e. when navigating to "/" or "/index.html". They are not served when the document is returned in response to a request path which doesn't exist. (This behaviour is needed for single-page applications because the handling of 404s is deferred to the front end's client side routing.)

This commit makes sure these headers are served for the latter as well as the former.

Maurice Yap and others added 2 commits February 25, 2025 16:17
In the Lookout UI web server, the HTTP response headers preventing index.html from being served are only served when the document is accessed directly i.e. when navigating to "/" or "/index.html". They are not served when the document is returned in response to a request path which doesn't exist. (This behaviour is needed for single-page applications because the handling of 404s is deferred to the front end's client side routing.)

This commit makes sure these headers are served for the latter as well as the former.
@mauriceyap mauriceyap enabled auto-merge (squash) February 25, 2025 16:27
@mauriceyap mauriceyap merged commit 818ea0d into master Feb 25, 2025
29 checks passed
@mauriceyap mauriceyap deleted the sendToGitHub/prevent-caching-index-html branch February 25, 2025 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants