Add Cache-Tag header for CDN or possibility to modify the headers dynamically #54871
Replies: 3 comments
-
Here are some more related discussions/issues: My interpretation of the implementation of RSC and the new caching heuristics lead me to believe the headers can not be available in an RSC in the same way they were with the pages router and |
Beta Was this translation helpful? Give feedback.
-
the last one is absolutely the same issue, correct. Haven't found it before |
Beta Was this translation helpful? Give feedback.
-
Temporary workaround here #50914 (comment) |
Beta Was this translation helpful? Give feedback.
-
Imagine you have the route like
/app/[slug]/page.tsx
.The [page] can be different - some product like /adidas-boots or category like /shooes. Depends on server data.
product-12345
orcategory-12345
.May be related: #52491
May be also related: #36089
The easiest solution can be just allow user to set the custom response headers right from the server component. At least we have the function to generate metadata. Maybe we can simple extend it?
Beta Was this translation helpful? Give feedback.
All reactions