Skip to content

Commit

Permalink
Add note about disabling caching
Browse files Browse the repository at this point in the history
  • Loading branch information
kotx authored Jul 2, 2022
1 parent c25745f commit 6269040
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ compatibility_date = "2022-05-15"
workers_dev = true

[vars]
# The `cache-control` header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control. Optional, the `cache-control` header is omitted if unset.
# The `cache-control` header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control.
# Optional, the `cache-control` header is omitted if unset, which would NOT disable caching: https://developers.cloudflare.com/workers/runtime-apis/cache/#headers
# For example, you can disable all cache by setting this to `no-store`.
CACHE_CONTROL = "max-age=86400"
# The string to prepend to each file path. Optional, nothing is prepended to the path if unset.
PATH_PREFIX = ""

[[r2_buckets]]
binding = "R2_BUCKET"
bucket_name = "kot" # Set this to your R2 bucket name. Required
preview_bucket_name = "kot" # Set this to your preview R2 bucket name. Can be equal to bucket_name. Optional
preview_bucket_name = "kot" # Set this to your preview R2 bucket name. Can be equal to bucket_name. Optional

0 comments on commit 6269040

Please sign in to comment.