Static files / compression / caching question #25938
Unanswered
DanielLoth
asked this question in
General
Replies: 1 comment 5 replies
-
What version is this? We've fixed a few issues with this flow, but there's certainly more we could do. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I've been curious about how, if at all, it would be possible to use out-of-the-box tooling and middleware to handle immutable static files.
For those aspnetcore3.1 applications running in Dockerised environments, as immutable infrastructure, there is likely no expectation of ever changing the static content within the wwwroot folder after building and deploying the Docker image artifacts.
I've been experimenting with the following pipeline configuration:
This arrangement is not quite what I want. The caching middleware might be misunderstood on my part, or insufficiently configured.
What I would like is the following:
So after three requests:
I would want it to never reach the StaticFiles middleware again for the duration of the runtime.
Is this configuration possible?
Beta Was this translation helpful? Give feedback.
All reactions