File tree 2 files changed +2
-10
lines changed
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export default async (
131
131
} )
132
132
}
133
133
134
- setCacheControlHeaders ( response , request , requestContext , nextConfig )
134
+ setCacheControlHeaders ( response , request , requestContext )
135
135
setCacheTagsHeaders ( response . headers , requestContext )
136
136
setVaryHeaders ( response . headers , request , nextConfig )
137
137
setCacheStatusHeader ( response . headers , nextCache )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { NextConfigComplete } from 'next/dist/server/config-shared.js'
3
3
4
4
import type { NetlifyCachedRouteValue , NetlifyCacheHandlerValue } from '../shared/cache-types.cjs'
5
5
6
- import { getLogger , RequestContext } from './handlers/request-context.cjs'
6
+ import { RequestContext } from './handlers/request-context.cjs'
7
7
import { recordWarning } from './handlers/tracer.cjs'
8
8
import { getMemoizedKeyValueStoreBackedByRegionalBlobStore } from './storage/storage.cjs'
9
9
@@ -200,7 +200,6 @@ export const setCacheControlHeaders = (
200
200
{ headers, status } : Response ,
201
201
request : Request ,
202
202
requestContext : RequestContext ,
203
- nextConfig : NextConfigComplete ,
204
203
) => {
205
204
if (
206
205
typeof requestContext . routeHandlerRevalidate !== 'undefined' &&
@@ -213,13 +212,6 @@ export const setCacheControlHeaders = (
213
212
return
214
213
}
215
214
216
- // temporary diagnostic to evaluate number of trailing slash redirects
217
- if ( status === 308 && request . url . endsWith ( '/' ) !== nextConfig . trailingSlash ) {
218
- getLogger ( )
219
- . withFields ( { trailingSlash : nextConfig . trailingSlash , location : headers . get ( 'location' ) } )
220
- . log ( 'NetlifyHeadersHandler.trailingSlashRedirect' )
221
- }
222
-
223
215
const cacheControl = headers . get ( 'cache-control' )
224
216
if ( status === 404 ) {
225
217
if ( request . url . endsWith ( '.php' ) ) {
You can’t perform that action at this time.
0 commit comments