Skip to content

Commit 9ec74d4

Browse files
authored
Issue #116 Fix issue where "Last-Modified" was defined as local time instead of UTC
1 parent 37d59dc commit 9ec74d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const getResponseHeaders = (processedRequest, isErr) => {
5959
'Access-Control-Allow-Methods': 'GET',
6060
'Access-Control-Allow-Headers': 'Content-Type, Authorization',
6161
'Access-Control-Allow-Credentials': true,
62-
'Last-Modified': timenow.toString()
62+
'Last-Modified': timenow.toUTCString()
6363
}
6464
const cacheControlDefault = settings.getSetting('DEFAULT_CACHE_CONTROL')
6565
if (processedRequest) {

0 commit comments

Comments
 (0)