Skip to content

Commit

Permalink
Changed CACHE_SHORT references to CACHE_LONG
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorlars committed Dec 17, 2024
1 parent 067a1fb commit d495ee3
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/routes/($lang)._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import invariant from 'tiny-invariant';
import {PageHeader, Section, Text, SortFilter} from '~/components';
import {ProductGrid} from '~/components/ProductGrid';
import {PRODUCT_CARD_FRAGMENT} from '~/data/fragments';
import {CACHE_SHORT, routeHeaders} from '~/data/cache';
import {CACHE_LONG, routeHeaders} from '~/data/cache';
import {seoPayload} from '~/lib/seo.server';
import type {AppliedFilter, SortParam} from '~/components/SortFilter';

Expand Down Expand Up @@ -125,7 +125,7 @@ export async function loader({request, context}: LoaderArgs) {
},
{
headers: {
'Cache-Control': CACHE_SHORT,
'Cache-Control': CACHE_LONG,
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions app/routes/($lang).collections.$collectionHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import invariant from 'tiny-invariant';
import {PageHeader, Section, Text, SortFilter} from '~/components';
import {ProductGrid} from '~/components/ProductGrid';
import {PRODUCT_CARD_FRAGMENT} from '~/data/fragments';
import {CACHE_SHORT, routeHeaders} from '~/data/cache';
import {CACHE_LONG, routeHeaders} from '~/data/cache';
import {seoPayload} from '~/lib/seo.server';
import type {AppliedFilter, SortParam} from '~/components/SortFilter';

Expand Down Expand Up @@ -125,7 +125,7 @@ export async function loader({params, request, context}: LoaderArgs) {
},
{
headers: {
'Cache-Control': CACHE_SHORT,
'Cache-Control': CACHE_LONG,
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions app/routes/($lang).collections._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
} from '~/components';
import {getImageLoadingPriority} from '~/lib/const';
import {seoPayload} from '~/lib/seo.server';
import {CACHE_SHORT, routeHeaders} from '~/data/cache';
import {CACHE_LONG, routeHeaders} from '~/data/cache';
import {Image} from '@shopify/hydrogen';

const PAGINATION_SIZE = 8;
Expand Down Expand Up @@ -44,7 +44,7 @@ export const loader = async ({request, context: {storefront}}: LoaderArgs) => {
{collections, seo},
{
headers: {
'Cache-Control': CACHE_SHORT,
'Cache-Control': CACHE_LONG,
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions app/routes/($lang).journal._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Article, Blog } from '@shopify/hydrogen/storefront-api-types';
import { Grid, PageHeader, Section, Link } from '~/components';
import { getImageLoadingPriority, PAGINATION_SIZE } from '~/lib/const';
import { seoPayload } from '~/lib/seo.server';
import { CACHE_SHORT, routeHeaders } from '~/data/cache';
import { CACHE_LONG, routeHeaders } from '~/data/cache';

const BLOG_HANDLE = 'Journal';

Expand Down Expand Up @@ -45,7 +45,7 @@ export const loader = async ({ request, context: { storefront } }: LoaderArgs) =
{ articles, seo },
{
headers: {
'Cache-Control': CACHE_SHORT,
'Cache-Control': CACHE_LONG,
},
},
);
Expand Down
2 changes: 1 addition & 1 deletion app/routes/($lang).modules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ModuleView } from "~/views/module";
import { Section } from "~/components/Text";
import { Link } from "@remix-run/react";
import IconLink from "~/components/IconLink";
import { routeHeaders, CACHE_SHORT } from '~/data/cache';
import { routeHeaders, CACHE_LONG } from '~/data/cache';
import { BsCheckSquareFill } from "react-icons/bs";
export const headers = routeHeaders;

Expand Down
4 changes: 2 additions & 2 deletions app/routes/($lang).products.$productHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import { ModuleDetails } from '~/components/ModuleDetails';
import { ModuleView } from '~/views/module';
import { getModuleDetails } from '~/controllers/get_module_details';
import { ModuleGallery } from '~/components/ModuleGallery';
import { routeHeaders, CACHE_SHORT } from '~/data/cache';
import { routeHeaders, CACHE_LONG } from '~/data/cache';
export const headers = routeHeaders;

export async function loader({ params, request, context }: LoaderArgs) {
Expand Down Expand Up @@ -122,7 +122,7 @@ export async function loader({ params, request, context }: LoaderArgs) {
},
{
headers: {
'Cache-Control': CACHE_SHORT,
'Cache-Control': CACHE_LONG,
},
},
);
Expand Down
4 changes: 2 additions & 2 deletions app/routes/($lang).products._index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import {PRODUCT_CARD_FRAGMENT} from '~/data/fragments';
import {getImageLoadingPriority} from '~/lib/const';
import {seoPayload} from '~/lib/seo.server';
import {routeHeaders, CACHE_SHORT} from '~/data/cache';
import {routeHeaders, CACHE_LONG} from '~/data/cache';

const PAGE_BY = 8;

Expand Down Expand Up @@ -65,7 +65,7 @@ export async function loader({request, context: {storefront}}: LoaderArgs) {
},
{
headers: {
'Cache-Control': CACHE_SHORT,
'Cache-Control': CACHE_LONG,
},
},
);
Expand Down

0 comments on commit d495ee3

Please sign in to comment.