sw-precache-webpack-plugin icon indicating copy to clipboard operation
sw-precache-webpack-plugin copied to clipboard

Feature request. Add an option to GZIP service-worker.js file.

Open JustFly1984 opened this issue 7 years ago • 5 comments

The issue I'm experiencing is pretty annoying. I'm trying to optimize my first byte, by turning off compression, and gziping everything by webpack with CompressionPlugin. The issue is that it doesn't compress service-worker.js produced by sw-precache-webpack-plugin.

I understand the reason why: service-worker.js should cache all chunks produced by webpack after CompressionPlugin compression.

This is why I think it should be an option in sw-precache-webpack-plugin itself.

Thank you)

JustFly1984 avatar Jan 14 '18 13:01 JustFly1984

+1

nisargrthakkar avatar Jul 11 '18 06:07 nisargrthakkar

yes! +1

njacob1001 avatar Oct 29 '18 23:10 njacob1001

Any new?

aralroca avatar Nov 16 '18 14:11 aralroca

Happy to take a PR for this :)

goldhand avatar Nov 17 '18 01:11 goldhand

Is there a workaround ?

abhipanda avatar Oct 30 '19 18:10 abhipanda