Skip to content

Commit

Permalink
Merge pull request #1 from thorwebdev/patch-1
Browse files Browse the repository at this point in the history
fix: change cache-control header order
  • Loading branch information
ascorbic committed Nov 17, 2022
2 parents a744d0c + cfac183 commit b457ead
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ When running in production, these headers will be included by `og_edge`:

```jsx
'content-type': 'image/png',
'cache-control': 'public, immutable, no-transform, max-age=31536000',
'cache-control': 'public, max-age=31536000, no-transform, immutable',
```

During development, the `cache-control: no-cache, no-store` header is used
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export class ImageResponse {
"content-type": "image/png",
"cache-control": isDev
? "no-cache, no-store"
: "public, immutable, no-transform, max-age=31536000",
: "public, max-age=31536000, no-transform, immutable",
...extendedOptions.headers,
},
status: extendedOptions.status,
Expand Down

0 comments on commit b457ead

Please sign in to comment.