Comments (4)
#63265 should fix this issue
from next.js.
it appears to be working constantly when building the app before testing even if the the playwright config is running the server in dev mode.
Even with this workaround, i can't make it work when the fetch request happens in the middleware of the app.
from next.js.
@brunolca this looks like the automatic fetch caching issue. Could you modify your fetch to look like this?
await fetch("https://jsonplaceholder.typicode.com/posts/1", {
cache: "no-store",
})
Let me know if that works for you.
If it does, we could further do one or both of the following:
- I can document how to disable cache for testing.
- (Maybe even better) I could automatically disable cache for the
--experimental-test-proxy
.
from next.js.
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
from next.js.
Related Issues (20)
- Invalid URL in middleware rewrite from edge runtime server action
- Turbopack: Failed to compile (turbo) with (react-pdf) HOT 1
- `Request` object behaves differently in fetch HOT 7
- navigating back from multiple intercepted route breaks routing
- Turbopack: Unable to load SVG. Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
- Middleware added Nonce attributes missing from TypeScript production builds
- typedRoutes don't recognize parameter on rewritten url if preceded by path character
- Github actions: Error: Page "/logs/publish/[id]" is missing "generateStaticParams()" so it cannot be used with "output: export" config. HOT 1
- Next 14 shows flicker with external React Native components on web
- Preflight cache middleware opt-out not working for rewrite of dynamic routes
- [Turbopack] [Next 15 RC] Cannot resolve exported paths from `@skeletonlabs/skeleton@next` HOT 2
- redirect in NextJS config doesn't populate param in `destination` more than once
- The Edge Function "middleware" size is 1.01 MB and your plan size limit is 1 MB. Though the file is 173kb HOT 4
- Subresource Integrity (SRI) not working HOT 1
- global-error.tsx doesn't work next.js 14+
- [Next 15 RC] create-next-app --empty with tw and src dir has wrong content path HOT 3
- CORS middleware not applied to preview and staging domains, but works on production domain
- From my testing, when GET and PUT are the only methods set, it breaks. I also tried changing the order in which they are set.
- Request method bug in production environment. HOT 3
- Next.js doesn't resolve docker network defined hostnames HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.