mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 14:36:59 +00:00
Update products.ts
This commit is contained in:
parent
d1d9e8c434
commit
8d4a27c7d4
@ -26,11 +26,6 @@ const productsEndpoint: GetAPISchema<
|
||||
|
||||
const res = await handlers['getProducts']({ ...ctx, body })
|
||||
|
||||
res.headers = {
|
||||
'Cache-Control': 'max-age=0, s-maxage=3600, stale-while-revalidate, public',
|
||||
...res.headers,
|
||||
}
|
||||
|
||||
return parse(res, searchProductsSchema)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user