pepe-le-moko
CDCloudflare Developers
•Created by GATES on 5/21/2024 in #pages-help
Pages Caching
duly noted! is there a way to cache the response without incurring a request?
20 replies
CDCloudflare Developers
•Created by GATES on 5/21/2024 in #pages-help
Pages Caching
@Hello, I’m Allie! I don't want to open another issue because I've asked myself the same question, so I'll piggyback on this one. First of all, thanks for clarifying that SSR pages aren't cached, I'm assuming SSR pages are what runs behind
functions/
? If so, would the way to deal with it is:
1. my route would return a Cache-Control: public, s-maxage=300
header
2. then have a function inside my functions/_middleware.js
to deal with Cache API (like this https://gist.github.com/boertel/ec56319f5f4dbec28b750cbda3fe0027)
then request will be cache for 5 minutes, and is that correct that the CF-Cache-Status header is not set when calling the Cache API?20 replies
CDCloudflare Developers
•Created by armout on 11/10/2024 in #workers-help
Best way to serve static assets using hono?
if I can piggyback on this question: is it possible to set
Cache-Control
headers on these static assets? (in the code, not through the cloudflare dashboard)3 replies