Skip to content

Commit

Permalink
refactor: remove cache control helper
Browse files Browse the repository at this point in the history
  • Loading branch information
fpdrozd committed Mar 21, 2023
1 parent b6b26b6 commit cebbc0a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions packages/theme/pages/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,11 @@ import { useCart, useWishlist, productGetters, useFacet, facetGetters, useUser,
import { useUiHelpers, useUiState } from '~/composables';
import { onSSR } from '@vue-storefront/core';
import LazyHydrate from 'vue-lazy-hydration';
import cacheControl from './../helpers/cacheControl';
import CategoryPageHeader from '~/components/CategoryPageHeader';
// TODO(addToCart qty, horizontal): https://github.com/vuestorefront/storefront-ui/issues/1606
export default {
transition: 'fade',
middleware: cacheControl({
'max-age': 60,
'stale-when-revalidate': 5
}),
setup() {
const th = useUiHelpers();
const uiState = useUiState();
Expand Down
5 changes: 0 additions & 5 deletions packages/theme/pages/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,10 @@ import { ref, computed, useRoute, useRouter, useContext } from '@nuxtjs/composit
import { useProduct, useCart, productGetters } from '@vue-storefront/spree';
import { onSSR } from '@vue-storefront/core';
import LazyHydrate from 'vue-lazy-hydration';
import cacheControl from './../helpers/cacheControl';
export default {
name: 'Product',
transition: 'fade',
middleware: cacheControl({
'max-age': 60,
'stale-when-revalidate': 5
}),
setup() {
const qty = ref(1);
const route = useRoute();
Expand Down

0 comments on commit cebbc0a

Please sign in to comment.