Skip to content

Commit

Permalink
feat: remove lastModifiedHeader temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Nov 1, 2023
1 parent bf429f5 commit a5dd7a6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/logic/last-modified-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export function lastModifiedMiddleware(

return async (context, next): Promise<IHttpServerComponent.IResponse> => {
const lastModifiedTime = getLastModifiedTime()
const lastModifiedHeader = new Date(lastModifiedTime).toUTCString()
const ifModifiedSinceHeader =
context.request.headers.get('If-Modified-Since')

Expand All @@ -28,7 +27,6 @@ export function lastModifiedMiddleware(
return {
status: 304,
headers: {
'Last-Modified': lastModifiedHeader,
'Cache-Control': cacheControlHeader,
},
}
Expand All @@ -38,7 +36,6 @@ export function lastModifiedMiddleware(
const response = await next()
response.headers = {
...response.headers,
'Last-Modified': lastModifiedHeader,
'Cache-Control': cacheControlHeader,
}

Expand Down

0 comments on commit a5dd7a6

Please sign in to comment.