Skip to content

Is it possible to set a default max-age or expires header for staticfiles? #1779

Discussion options

You must be logged in to vote

Starlette does not currently support configuring them. But you can use https://baize.aber.sh/asgi#files, as a standard ASGI Application, you can use it directly in starlette project (Just replace StaticFiles).

Replies: 3 comments 1 reply

Comment options

Kludex
Jul 29, 2022
Maintainer Sponsor

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Kludex
Comment options

Kludex Jul 29, 2022
Maintainer Sponsor

Answer selected by johnraz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants