Skip to content

Commit

Permalink
Fix getCacheControlValue condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo Bloshko committed Feb 21, 2023
1 parent a91f454 commit 28d1a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ssrUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ export const getSaleorProductWithContentfulProductField: GetSaleorProduct =

export const isPreviewAllowed = () => IS_PREVIEW;

export const getCacheControlValue = (noCache = false) => {
return noCache ? "public, max-age=300" : "no-store";
export const getCacheControlValue = (noStore = false) => {
return noStore ? "no-store" : "public, max-age=300";
};

0 comments on commit 28d1a3f

Please sign in to comment.