Skip to content

Commit

Permalink
Update packages/kit/src/runtime/server/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Nov 23, 2021
1 parent 9df259d commit ed8b155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export async function respond(incoming, options, state = {}) {
if (!cache_control || !/(no-store|immutable)/.test(cache_control)) {
let if_none_match_value = request.headers['if-none-match'];
// ignore W/ prefix https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match#directives
if (if_none_match_value?.indexOf('W/"') === 0) {
if (if_none_match_value?.startsWith('W/"')) {
if_none_match_value = if_none_match_value.substring(2);
}

Expand Down

0 comments on commit ed8b155

Please sign in to comment.