File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export default async (
132
132
}
133
133
134
134
setCacheControlHeaders ( response , request , requestContext , nextConfig )
135
- setCacheTagsHeaders ( response . headers , request , requestContext )
135
+ setCacheTagsHeaders ( response . headers , requestContext )
136
136
setVaryHeaders ( response . headers , request , nextConfig )
137
137
setCacheStatusHeader ( response . headers , nextCache )
138
138
Original file line number Diff line number Diff line change @@ -285,7 +285,6 @@ export const setCacheControlHeaders = (
285
285
286
286
export const setCacheTagsHeaders = (
287
287
headers : Headers ,
288
- request : Request ,
289
288
requestContext : RequestContext ,
290
289
) => {
291
290
if ( ! headers . has ( 'cache-control' ) && ! headers . has ( 'netlify-cdn-cache-control' ) ) {
@@ -294,13 +293,7 @@ export const setCacheTagsHeaders = (
294
293
295
294
if ( requestContext . responseCacheTags ) {
296
295
headers . set ( 'netlify-cache-tag' , requestContext . responseCacheTags . join ( ',' ) )
297
- return
298
296
}
299
-
300
- const key = new URL ( request . url ) . pathname
301
- const cacheTag = `_N_T_${ key === '/index' ? '/' : encodeURI ( key ) } `
302
- console . log ( 'setCacheTagsHeaders' , 'netlify-cache-tag' , key )
303
- headers . set ( 'netlify-cache-tag' , cacheTag )
304
297
}
305
298
306
299
/**
You can’t perform that action at this time.
0 commit comments