You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/pages/guides/caching.mdx
+28-6
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,41 @@ description: ""
5
5
6
6
# Caching
7
7
8
-
You can set the caching policy of your frames by defining the `Cache-Control` headers of your responses
8
+
You can set the caching policy of your frames by defining the `Cache-Control` headers of your frame's **image response**
9
9
10
-
```tsx
10
+
Since images are returned as an inline Data URL by default, this will require you to create a separate endpoint for your dynamic images that you want to avoid caching for.
Additional context can be passed to the image endpoint via URL query params.
44
+
23
45
See an example of how to use the `Cache-Control` header in the [Caching example](https://github.com/framesjs/frames.js/tree/main/examples/framesjs-starter/app/examples/new-api-cache-control).
0 commit comments