1 Reply
const url = new URL(request.url);
if (url.searchParams.has('gclid') ||
url.searchParams.has('fbclid') ||
url.searchParams.has('bing') ||
url.searchParams.has('usg') ||
url.searchParams.has('attribute') ||
url.pathname.toLowerCase() === '/walk-in-tub-pricing/' ||
country != 'US') {
response.headers.set(
"Set-Cookie",
"pricing-mode=on;max-age=604800;Path=/"
)
}