[Angular CSDK] ISR-like loader cache implementation#491
Merged
art-alexeyenko merged 16 commits intoJun 3, 2026
Conversation
(cherry picked from commit 45640df4faa70b53b73d0a8ac9c25a8ba7344d51)
(cherry picked from commit d3f5b4c33c683018882f0c0289551f7b7787a746)
…ntent-sdk into feature/jss-9590-angular-isr # Conflicts: # packages/angular/ng-package.json # packages/angular/src/loaders/loader-resolver.ts # packages/create-content-sdk-app/src/templates/angular/src/app/app.config.ts # packages/create-content-sdk-app/src/templates/angular/src/app/app.routes.ts
…ntent-sdk into feature/jss-9590-angular-isr
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a caching layer for loaders in Angular CSDK. It's designed to provide ISR-like behavior: cache entries for loaders are created and reused until becoming stale. When stale loader cache is accessed, it is revalidated (stale-while-revalidate, similar to next).
This is not a full fledged ISR implementation, however, and it's goal is to minimize Edge calls. Similarly, this does not introduce SSG support (it will be it's own can of worms later, but we have building blocks).
src/server.tsand cache object pointer is passed down into Angular SSR to ensure consistency.