Disabling must-revalidate
when serving static files via Inert
#163
Labels
support
Questions, discussions, and general support
Support plan
Context
How can we help?
I'd like to implement a cache-busting mechanism based on filepath, meaning that I'd like to have the
cache-control
header be (exclusively)max-age={MAX_AGE}, immutable
However, I can't find a way to not have Inert (or HAPI?) adds the
must-revalidate
directive to this header (or to addimmutable
to it fwiw).The way we're configuring our route:
When calling the endpoint, the
must-revalidate
is addedIs there any way to prevent inert from adding the
must-revalidate
directive when serving the files, and to add custom directives (e.gimmutable
)?The text was updated successfully, but these errors were encountered: