-
Notifications
You must be signed in to change notification settings - Fork 140
async doesn't work when I use with gzip compression in express #264
Comments
All the fragments supports gzip compression, There is no differentiation between sync and async fragments except async fragments are streamed later on the page. |
I think he mean by the Tailor itself that doesn't support compression, not fragments. |
@vigneshshanmugam Yes, I meant the Tailor doesn't work property with async+compression. It would wait all fragments loaded before render in the browser even if we use async. |
@vigneshshanmugam Do you compress your website (Tailor level not a fragment level) by nginx/express/etc.? |
We do compress it using our in house proxy server Skipper. I am not sure why it doesn't work with compression. I will try to check and update you. |
@vigneshshanmugam Thank you. Do you suggest me to use Skipper? Is only Tailor is enough for production? |
@WarisR Sorry somehow lost your message. Tailor is indeed enough for handling the load for production. But since GZIP is a CPU heavy task, I would say its better to do it at the proxy level like using Skipper/Nginx etc . |
In index.js(Node.js), I use express and I add
compression
middleware to do a gzip compressionindex.html
I added async in index.html but it doesn't work properly and still load synchronously.
Does Async in Tailor support gzip compression? Anyone has a workaround?
The text was updated successfully, but these errors were encountered: