Skip to content

Commit

Permalink
fix: let image/sound cache immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
gnlow committed Dec 30, 2023
1 parent 7f0145a commit 50b9e0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ app.get("/image/lib/*/images/*", async c => {
await api.image(path),
{
headers: {
"cache-control": "max-age=31536000, public"
"cache-control": "max-age=31536000, public, immutable"
}
},
)
Expand All @@ -111,7 +111,7 @@ app.get("/image/:id", async c => {
),
{
headers: {
"cache-control": "max-age=31536000, public"
"cache-control": "max-age=31536000, public, immutable"
}
},
)
Expand All @@ -123,7 +123,7 @@ app.get("/sound/lib/entry-js/images/*", async c => {
await api.image(path),
{
headers: {
"cache-control": "max-age=31536000, public"
"cache-control": "max-age=31536000, public, immutable"
}
},
)
Expand All @@ -141,7 +141,7 @@ app.get("/sound/:id", async c => {
),
{
headers: {
"cache-control": "max-age=31536000, public"
"cache-control": "max-age=31536000, public, immutable"
}
},
)
Expand Down

0 comments on commit 50b9e0a

Please sign in to comment.