Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not add to cache if the value is greater than 25MB #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jackzh22
Copy link
Collaborator

@jackzh22 jackzh22 commented Jul 5, 2024

  • If the value to store in cache is greater than 25MB (Cloudflare's KV limit for the value) an error would be thrown from thecache.put call ({"error":"KV PUT failed: 413 Value length of 26960532 exceeds limit of 26214400."}, which would cause a 500 Internal Server Error thrown from the get/getAll calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant