mirror of
https://github.com/maciejpedzich/spotifyplaylistarchive.com.git
synced 2024-09-20 02:26:20 +02:00
Revert to forwarding GitHub response's ETag
This commit is contained in:
parent
7260c771a2
commit
b5213095e6
@ -65,7 +65,6 @@ export const get: APIRoute = async ({ request, params }) => {
|
||||
];
|
||||
|
||||
const body = JSON.stringify(payload);
|
||||
const ETag = payload[0].snapshotId;
|
||||
|
||||
const cacheControlDirectives =
|
||||
Date.now() > untilDate.getTime()
|
||||
@ -77,7 +76,7 @@ export const get: APIRoute = async ({ request, params }) => {
|
||||
headers: {
|
||||
'Content-Type': 'application/json;charset=utf-8',
|
||||
'Cache-Control': `public, ${cacheControlDirectives}`,
|
||||
ETag
|
||||
ETag: etag as string
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user