Comments (5)
Yes, they should always be added. I think it was missed b/c this is specific to the appDir
feature w/ the prefetch logics.
We would greatly appreciate a PR.
from cdk-nextjs.
PRs very much welcome!
from cdk-nextjs.
This is likely due to the cache headers policy not setting rsc, next-router-prefetch, and next-router-state-tree
If you add those to the server cache policy, it should properly grab the correct cache.
from cdk-nextjs.
@khuezy, thanks for the quick response! I did what you suggested by adding those headers to the "Nextjs Lambda Default Cache Policy" (CloudFront > Policies > Cache > Custom Policies) like below and it works now!
Do you think these headers should always be added in Cache key settings? Should I create a PR? Why aren't these cache key headers already included in this construct?
from cdk-nextjs.
@khuezy, I'd be happy to support this project by providing a PR. Thank you for your help!
from cdk-nextjs.
Related Issues (20)
- error: ValidationException: 1 validation error detected: Value null at 'tableName' failed to satisfy constraint: Member must not be null HOT 8
- Refactor custom domain logic to make actions more explicit and/or flexible HOT 9
- 403 on previous assets during deployment HOT 4
- Issue with deploying stacks with --exclusive flag
- Page with getStaticProps gets an invalid url error HOT 6
- Consider using native `node:crypto` to sign requests in sign-fn-url HOT 1
- Windows - Bundling fails due to wrong shell usage HOT 1
- CustomCDKBucketDeployment lambda - Exited with SIGKILL 9 HOT 8
- Cannot find package 'next' imported from /var/task/index.mjs" HOT 19
- bug: cdk destroy fails when open-next build is not present HOT 2
- Feature Request: Support GovCloud By Providing Option to Replace CloudFront with Api Gateway
- Upgrade to open-next v3
- Fix: Usage with PNPM on Windows
- Docs: Update README and examples/
- Skip creation of A and AAAA Records HOT 5
- When deploying the Distribution the CachePolicy creation returns 400 Bad request HOT 1
- Limit exceeded for resource of type 'AWS::CloudFront::ResponseHeadersPolicy' when deploying multiple sites
- NextjsServerOverrides.nextjsBucketDeploymentProps should be typed as optional
- Feature Request: Support for non us-east-1 regions and signed requests with lambda@edge function HOT 2
- Multi-tenant deploy error (CloudFront HTTP 409) HOT 6
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 cdk-nextjs.