Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Dec 3, 2023
1 parent e32fd06 commit b7c037f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.0.126",
"version": "1.0.127",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities.cfw",
"description": "Utilities for JavaScript apps running in a Cloudflare Worker environment.",
Expand Down Expand Up @@ -54,7 +54,7 @@
},
"dependencies": {},
"peerDependencies": {
"@clevercanyon/utilities": "^1.0.503",
"@clevercanyon/utilities": "^1.0.504",
"@cloudflare/kv-asset-handler": "0.2.0"
},
"peerDependenciesMeta": {},
Expand Down
2 changes: 1 addition & 1 deletion src/cfw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const handleFetchCache = async (route: Route, feData: FetchEventData): Pr
if ('GET' === request.method && 206 !== response.status && '*' !== response.headers.get('vary') && !response.webSocket) {
if ($env.isCFWViaMiniflare() && 'no-store' === response.headers.get('cdn-cache-control')) {
// Miniflare doesn’t currently support `cdn-cache-control`, so we implement basic support for it here.
response.headers.set('cf-cache-status', 'miniflare.cdn-cache-control.BYPASS');
response.headers.set('cf-cache-status', 'c10n.miniflare.cdn-cache-control.BYPASS');
} else {
// Cloudflare will not actually cache if response headers say not to cache.
// For further details regarding `cache.put()`; {@see https://o5p.me/gMv7W2}.
Expand Down

0 comments on commit b7c037f

Please sign in to comment.