Giter Site home page Giter Site logo

Comments (5)

khuezy avatar khuezy commented on May 20, 2024 1

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.

revmischa avatar revmischa commented on May 20, 2024 1

PRs very much welcome!

from cdk-nextjs.

khuezy avatar khuezy commented on May 20, 2024

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.

bestickley avatar bestickley commented on May 20, 2024

@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!
image

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.

bestickley avatar bestickley commented on May 20, 2024

@khuezy, I'd be happy to support this project by providing a PR. Thank you for your help!

from cdk-nextjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.