Recommended caching behavior when proxying script #1408
Replies: 3 comments
-
This header is required by Netlify. You can certainly cache it on your end, no problem. We will soon move to a different CDN and we'll start sending better cache headers. Caching on the client side for up to 24 hours should be OK. You don't want to cache forever since we do release updates to the script regularly. |
Beta Was this translation helpful? Give feedback.
-
FYI I applied 24 hours caching on the reverse proxy setup in Google Cloud Run by changing the Seems to work fine and allows for caching the |
Beta Was this translation helpful? Give feedback.
-
Our script is now being cached so there should not be a need for any changes anymore |
Beta Was this translation helpful? Give feedback.
-
Currently, I am testing out to proxy Plausible through Firebase Hosting with Firebase Cloud Functions.
This means that all requests are sent to the Firebase / Google CDN and handed to a Cloud Function, if the response is not cached. Do you have a recommended caching behavior? The
cache-control
header sent by Plausible does not allow for caching:But caching would certainly improve performance and reduce costs by having less function invocations.
Beta Was this translation helpful? Give feedback.
All reactions