-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
[Cloudflare Pages] The 'cache' field on 'RequestInitializerDict' is not implemented. #173
Comments
Temporarily, can we add the feature to pass a custom |
Linking this PR thats in flight by James for next-on-pages cloudflare/next-on-pages#771 |
…to-cloudflare-issue fix: remove fetch `cache: no-store` due to #173
# [1.5.0-canary.2](v1.5.0-canary.1...v1.5.0-canary.2) (2024-05-26) ### Bug Fixes * remove fetch `cache: no-store` due to #173 ([6fb8143](6fb8143))
Hey! Thanks for reporting @samiy803. I've released a fix/workaround in More details about 1.5 can be found in #186 Could you test it and let me know if it works? |
# [1.5.0](v1.4.5...v1.5.0) (2024-05-30) ### Bug Fixes * remove fetch `cache: no-store` due to #173 ([6fb8143](6fb8143)) ### Features * added refreshCredentials method that allows to pass modified request headers to NextResponse constructor ([2bf2877](2bf2877)) * extract referer from Next.js request headers ([bc666fa](bc666fa)) * introduced Firebase API Key domain restriction support. Introduced changes to advanced methods and removed APIs deprecated in 1.0 ([67dbb9a](67dbb9a)) ### Performance Improvements * **refreshCredentials:** slightly improve performance by generating signed tokens only once ([da2fc3e](da2fc3e))
I will close the issue now, as 1.5 version has been released and |
Hi @awinogrodzki, I have a question about this update. Does it revert the changes required for this issue to be fixed #159. We didn't bumped the lib to the last version yet 😄. |
Hey @asaroukou, Yes, I've described the issue in this PR: #187
You need to update Next.js to version 14 before updating |
Ok so if I understand correctly the caching issue was only related to next 13. Since we already have the 14.x installed it should be fine to bump the lib to his last version. |
yes, exactly. The issue you faced in #159 was no longer reproducible in Next.js 14 |
# [1.5.0-canary.2](awinogrodzki/next-firebase-auth-edge@v1.5.0-canary.1...v1.5.0-canary.2) (2024-05-26) ### Bug Fixes * remove fetch `cache: no-store` due to awinogrodzki/next-firebase-auth-edge#173 ([6fb8143](awinogrodzki/next-firebase-auth-edge@6fb8143))
# [1.5.0](awinogrodzki/next-firebase-auth-edge@v1.4.5...v1.5.0) (2024-05-30) ### Bug Fixes * remove fetch `cache: no-store` due to awinogrodzki/next-firebase-auth-edge#173 ([6fb8143](awinogrodzki/next-firebase-auth-edge@6fb8143)) ### Features * added refreshCredentials method that allows to pass modified request headers to NextResponse constructor ([2bf2877](awinogrodzki/next-firebase-auth-edge@2bf2877)) * extract referer from Next.js request headers ([bc666fa](awinogrodzki/next-firebase-auth-edge@bc666fa)) * introduced Firebase API Key domain restriction support. Introduced changes to advanced methods and removed APIs deprecated in 1.0 ([67dbb9a](awinogrodzki/next-firebase-auth-edge@67dbb9a)) ### Performance Improvements * **refreshCredentials:** slightly improve performance by generating signed tokens only once ([da2fc3e](awinogrodzki/next-firebase-auth-edge@da2fc3e))
On certain edge runtimes like Cloudflare (possibly others too),
fetch()
doesn't implement thecache
field. As such, it produces an error:See: cloudflare/workerd#698
The text was updated successfully, but these errors were encountered: