Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(isr): add compression (#1755) #1768

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

Open
wants to merge 42 commits into
base: main
Choose a base branch
from

Conversation

maxisam
Copy link
Contributor

@maxisam maxisam commented Sep 3, 2024

  • update type of express, to work with express compress
  • add two more options
    • compressHtml: compression callback to compress the html before storing it in the cache.
    • htmlCompressionMethod: html compression method, it will use gzip by default if not provided.
  • with compressHtml handler, it will automatically disable modifyCachedHtml, since cached html is btye after compressed.
  • with compressHtml, it will send Buffer to cache handler instead of string, since stringify buffer could add 50% in size.
    For redis cache handler, user can use hgetBuffer / hgetallBuffer to handle buffer
  • update doc to show how to use redis with buffer, also improve the redis example by using hash, so it doesn't need to convert to json string first.

maxisam added 27 commits August 20, 2024 14:47
feat(isr): nonBlockingRender & backgroundRevalidation
chore(isr): rename HTML compression method
@maxisam maxisam changed the title feat(isr): add compression feat(isr): add compression (#1755) Sep 3, 2024
Copy link

nx-cloud bot commented Sep 3, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e08dd51. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

πŸ“‚ See all runs for this CI Pipeline Execution


βœ… Successfully ran 3 targets

Sent with πŸ’Œ from NxCloud.

@hoebbelsB hoebbelsB requested a review from eneajaho September 19, 2024 15:27
@github-actions github-actions bot added the πŸ“š Docs Web Documentation hosted on github pages label Oct 7, 2024
@github-actions github-actions bot added </> Template @rx-angular/template related { } State @rx-angular/state related πŸ”¬ Experimental Experimental: Feature, docs, demos πŸ›‚ Test Unit tests, e2e tests, integration tests, test coverage πŸ› οΈ CDK CDK related labels Nov 24, 2024
@maxisam maxisam marked this pull request as draft November 24, 2024 22:08
@maxisam maxisam marked this pull request as ready for review November 27, 2024 16:40
@maxisam
Copy link
Contributor Author

maxisam commented Nov 27, 2024

@eneajaho I just cleaned it up. It should be good for review now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
πŸ› οΈ CDK CDK related πŸ“š Docs Web Documentation hosted on github pages πŸ”¬ Experimental Experimental: Feature, docs, demos πŸš€ ISR { } State @rx-angular/state related </> Template @rx-angular/template related πŸ›‚ Test Unit tests, e2e tests, integration tests, test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant