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: schema.graphql
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,17 @@
5
5
6
6
# This will be the table where users can store their pages they would like to cache
7
7
# Keep this table simple
8
-
typePageCache@table(expiration: 3600) @export{
9
-
cacheControl: String # save cache control headers
10
-
id: ID@primaryKey # Note ID should path to webpage url you are caching (e.g in https://www.birkenstock.com/us/men/ the id should be /us/men/ ) This is our primary key Key
11
-
cachedData: String # cachedData should be the html of the webpage you are caching stored as a string
8
+
typePageCache@table(expiration: 3600) @export {
9
+
cacheControl: String
10
+
# Stores the Cache-Control headers for the page, which dictate how caching should be handled (e.g., max-age, no-cache).
12
11
12
+
id: ID@primaryKey
13
+
# The primary key representing the URL path of the cached webpage.
14
+
# Example: For the URL https://www.birkenstock.com/us/men/, the `id` should be "/us/men/".
15
+
# This allows us to uniquely identify cached pages based on their path.
16
+
17
+
cachedData: String
18
+
# Stores the full HTML of the cached webpage as a string.
19
+
# This is the rendered content that will be served from cache on subsequent requests.
0 commit comments