Skip to content

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
@nx-cloud
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