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

Skip to content

feat(isr): add compression #1763

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

Closed
wants to merge 23 commits into from
Closed

Conversation

maxisam
Copy link
Contributor

@maxisam maxisam commented Aug 30, 2024

#1755

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

This needs to wait until other PR #1760 #1757 get merged

maxisam added 23 commits August 20, 2024 14:47
feat(isr): nonBlockingRender & backgroundRevalidation
@github-actions github-actions bot added πŸ“š Docs Web Documentation hosted on github pages πŸš€ ISR labels Aug 30, 2024
Copy link

nx-cloud bot commented Aug 30, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 85b0dc3. 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 7 targets

Sent with πŸ’Œ from NxCloud.

@eneajaho
Copy link
Member

eneajaho commented Sep 1, 2024

Hello @maxisam
Can you create another PR to only include compression commits? All the previous PRs are already merged so you can just cherry pick the commits I guess.

Also, I was thinking to compress the result after we modify the HTML, and then store in cache.

-> Render
-> Modify Html
-> Compress
-> Store in cache

This way we don't break anything.

@maxisam
Copy link
Contributor Author

maxisam commented Sep 2, 2024

yes, I can do that. I thought I render HTML first and modify and compress after currently. I need to double check it when I get back

@maxisam maxisam closed this Sep 3, 2024
@maxisam
Copy link
Contributor Author

maxisam commented Sep 3, 2024

#1768 use this one instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
πŸ“š Docs Web Documentation hosted on github pages πŸš€ ISR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants