Skip to content
Discussion options

You must be logged in to vote

This is my interpretation of the issue:

In the middle of a cloud deployment, it is possible to serve a new application that references a new static file, but a user's HTTP request for the new static file can get routed to a stale application (which ultimately provides a 404).

Due to technological limitations, I don't think there is a way to automatically resolve this within ServeStatic. However, you can prevent this scenario by modifying your deployment process. The first two options are only possible on ServeStatic and not within WhiteNoise.

  1. Deploy ServeStatic in standalone mode separately from your main application.
    • Use routing rules to ensure that all static files requests are rout…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nburt
Comment options

@Archmonger
Comment options

Answer selected by Archmonger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #89 on June 14, 2025 03:11.