Blacklist fetch response headers when serialised for initial fetch #1971
Labels
breaking change
bug
Something isn't working
fetch-headers
issues relating to server-side `fetch` headers
p2-nice-to-have
SvelteKit cannot be used by a small number of people, quality of life improvements, etc.
Milestone
Describe the problem
when serialise the fetch response into
<script type="application/json" data-type="svelte-data">
, it includes the fetch response header, which includes headers that is always changed:which makes the html content hash different, even though the api response body and svelte rendered content is the same
Describe the proposed solution
blacklist some of the response header when serialised
Alternatives considered
use
serverFetch
hook to overwrite fetch behavior on server, and remove theDate
response headerImportance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: