You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need a hand to know how I can handle route rules with enable and disable cache.
The point is, below the examples:
/c-[category-page-slug] -> cache it
/c-[category-page-slug]?queryparam1=value1&queryparam2=value2 -> not cached
N.B Our site were deployed on Netlify.
I tried to add some rules inside public/_redirects file like below:
/c-/* utm_id=:utm_id utm_source=:utm_source utm_medium=:utm_medium utm_campaign=:utm_campaign /.netlify/functions 200
/c-/* /.netlify/builders/server 200
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need a hand to know how I can handle route rules with enable and disable cache.
The point is, below the examples:
/c-[category-page-slug] -> cache it
/c-[category-page-slug]?queryparam1=value1&queryparam2=value2 -> not cached
N.B Our site were deployed on Netlify.
I tried to add some rules inside public/_redirects file like below:
/c-/* utm_id=:utm_id utm_source=:utm_source utm_medium=:utm_medium utm_campaign=:utm_campaign /.netlify/functions 200
/c-/* /.netlify/builders/server 200
Can you help me ?
Beta Was this translation helpful? Give feedback.
All reactions