Try to revive legacy cached responses
This commit is contained in:
parent
3b562651f9
commit
3cbcb5b375
@ -118,7 +118,7 @@ export function getStoredResponse(url: string): StoredResponse | undefined {
|
|||||||
// (now - TTL) is the oldest possible age for this data
|
// (now - TTL) is the oldest possible age for this data
|
||||||
const lastModified = new Date(Date.now() - getCacheTtl()).toUTCString();
|
const lastModified = new Date(Date.now() - getCacheTtl()).toUTCString();
|
||||||
return {
|
return {
|
||||||
isRevivalNeeded: false,
|
isRevivalNeeded: true,
|
||||||
response: new Response(data, {
|
response: new Response(data, {
|
||||||
status: 200,
|
status: 200,
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user