Re: @remix-run/serve
sets high max-age
and immutable
cache header on everything
#9353
Labels
@remix-run/serve
sets high max-age
and immutable
cache header on everything
#9353
Reproduction
build
thenstart
/favicon.ico
requestThe favicon from
/public
comes withCache-Control: public, max-age=31536000, immutable
System Info
Used Package Manager
npm
Expected Behavior
The server config from
https://github.com/remix-run/remix/blob/main/packages/remix-serve/cli.ts
says
app.use(express.static("public", { maxAge: "1h" }));
.So it is expected to have
maxAge=1h
Actual Behavior
We actually get an
immutable
maxAge=1y
The text was updated successfully, but these errors were encountered: