ion icon indicating copy to clipboard operation
ion copied to clipboard

Fix caching in Cloudflare router for static/SSR sites

Open mlafeldt opened this issue 1 year ago • 2 comments

HEAD or POST requests currently result in this exception:

{
  "stack": "    at saveCache (worker.mjs:71:19)\n    at respond (worker.mjs:85:13)\n    at fetch (worker.mjs:35:22)",
  "name": "TypeError",
  "message": "Cannot cache response to non-GET request.",
  "timestamp": 1722691361303
}

Fixes #842

mlafeldt avatar Aug 03 '24 13:08 mlafeldt

Can you open an issue for this? I'll assign it to have it reviewed.

jayair avatar Aug 09 '24 21:08 jayair

Can you open an issue for this? I'll assign it to have it reviewed.

You can also assign PRs. :) But yeah, here it is: sst/sst#4294

mlafeldt avatar Aug 12 '24 12:08 mlafeldt

Thanks @mlafeldt!

fwang avatar Aug 28 '24 02:08 fwang