fix: rename retried-wrapped fetch to make caching work again

This commit is contained in:
Simon Emanuelsson
2024-08-28 10:47:57 +02:00
parent 08529e6398
commit 93526ce693
41 changed files with 728 additions and 575 deletions
@@ -71,12 +71,22 @@ async function getLanguageSwitcher(options: LanguageSwitcherVariables) {
{
document: GetDaDeEnUrlsAccountPage,
variables,
tags: tagsDaDeEn,
options: {
cache: "force-cache",
next: {
tags: tagsDaDeEn,
},
},
},
{
document: GetFiNoSvUrlsAccountPage,
variables,
tags: tagsFiNoSv,
options: {
cache: "force-cache",
next: {
tags: tagsFiNoSv,
},
},
},
])
case PageTypeEnum.currentBlocksPage:
@@ -84,12 +94,22 @@ async function getLanguageSwitcher(options: LanguageSwitcherVariables) {
{
document: GetDaDeEnUrlsCurrentBlocksPage,
variables,
tags: tagsDaDeEn,
options: {
cache: "force-cache",
next: {
tags: tagsDaDeEn,
},
},
},
{
document: GetFiNoSvUrlsCurrentBlocksPage,
variables,
tags: tagsFiNoSv,
options: {
cache: "force-cache",
next: {
tags: tagsFiNoSv,
},
},
},
])
case PageTypeEnum.loyaltyPage:
@@ -97,12 +117,22 @@ async function getLanguageSwitcher(options: LanguageSwitcherVariables) {
{
document: GetDaDeEnUrlsLoyaltyPage,
variables,
tags: tagsDaDeEn,
options: {
cache: "force-cache",
next: {
tags: tagsDaDeEn,
},
},
},
{
document: GetFiNoSvUrlsLoyaltyPage,
variables,
tags: tagsFiNoSv,
options: {
cache: "force-cache",
next: {
tags: tagsFiNoSv,
},
},
},
])
case PageTypeEnum.hotelPage:
@@ -110,12 +140,22 @@ async function getLanguageSwitcher(options: LanguageSwitcherVariables) {
{
document: GetDaDeEnUrlsHotelPage,
variables,
tags: tagsDaDeEn,
options: {
cache: "force-cache",
next: {
tags: tagsDaDeEn,
},
},
},
{
document: GetFiNoSvUrlsHotelPage,
variables,
tags: tagsFiNoSv,
options: {
cache: "force-cache",
next: {
tags: tagsFiNoSv,
},
},
},
])
case PageTypeEnum.contentPage:
@@ -123,12 +163,22 @@ async function getLanguageSwitcher(options: LanguageSwitcherVariables) {
{
document: GetDaDeEnUrlsContentPage,
variables,
tags: tagsDaDeEn,
options: {
cache: "force-cache",
next: {
tags: tagsDaDeEn,
},
},
},
{
document: GetFiNoSvUrlsContentPage,
variables,
tags: tagsFiNoSv,
options: {
cache: "force-cache",
next: {
tags: tagsFiNoSv,
},
},
},
])