Skip to content

Commit

Permalink
remove extra header
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Aug 31, 2023
1 parent e4ad99f commit 017623f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/next/src/server/lib/incremental-cache/fetch-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ interface NextFetchCacheParams {
const CACHE_TAGS_HEADER = 'x-vercel-cache-tags' as const
const CACHE_HEADERS_HEADER = 'x-vercel-sc-headers' as const
const CACHE_STATE_HEADER = 'x-vercel-cache-state' as const
const CACHE_VERSION_HEADER = 'x-data-cache-version' as const
const CACHE_REVALIDATE_HEADER = 'x-vercel-revalidate' as const
const CACHE_FETCH_URL_HEADER = 'x-vercel-cache-item-name' as const
const CACHE_CONTROL_VALUE_HEADER = 'x-vercel-cache-control' as const
Expand All @@ -40,7 +39,6 @@ export default class FetchCache implements CacheHandler {
constructor(ctx: CacheHandlerContext) {
this.debug = !!process.env.NEXT_PRIVATE_DEBUG_CACHE
this.headers = {}
this.headers[CACHE_VERSION_HEADER] = '2'
this.headers['Content-Type'] = 'application/json'

if (CACHE_HEADERS_HEADER in ctx._requestHeaders) {
Expand Down

0 comments on commit 017623f

Please sign in to comment.