workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

Allow unsetting of Link headers using _headers

Open GregBrimble opened this issue 3 years ago • 3 comments

We're moving the logic of the auto-generated Link header above the _headers handling so that there is a way to forcibly unset these with

/*
  ! Link

Unfortunately, testing isn't easy as we aren't set up to properly emulate caches and waitUntil.

GregBrimble avatar Sep 22 '22 13:09 GregBrimble

🦋 Changeset detected

Latest commit: 56ade93baba0a7fb7e36580cf202f8792132a79e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Sep 22 '22 13:09 changeset-bot[bot]

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/3107406326/npm-package-wrangler-1903

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1903/npm-package-wrangler-1903

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/3107406326/npm-package-wrangler-1903 dev path/to/script.js

github-actions[bot] avatar Sep 22 '22 13:09 github-actions[bot]

Codecov Report

Merging #1903 (56ade93) into main (3eb738e) will increase coverage by 0.01%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1903      +/-   ##
==========================================
+ Coverage   77.49%   77.51%   +0.01%     
==========================================
  Files         105      105              
  Lines        7479     7479              
  Branches     1977     1977              
==========================================
+ Hits         5796     5797       +1     
+ Misses       1683     1682       -1     
Impacted Files Coverage Δ
packages/wrangler/src/environment-variables.ts 71.42% <0.00%> (ø)
...ackages/wrangler/src/__tests__/helpers/mock-bin.ts 100.00% <0.00%> (+5.26%) :arrow_up:

codecov[bot] avatar Sep 22 '22 13:09 codecov[bot]