Some webserver modules such as nginx gzip_static looks for
example.html.gz, serve it if it exists, else the original
example.html will be served.
For instance, if example.html was 2kb, it would be gzipped and
example.html.gz was created.
However, if later example.html is modified to content less than the
threshold, gulp-gzip will only bypass it. Hence, you will end up with a
new example.html yet old example.html.gz. Your webserver will
continue to serve old content (example.html.gz).
Some webserver modules such as nginx
gzip_static
looks forexample.html.gz
, serve it if it exists, else the originalexample.html
will be served.For instance, if
example.html
was 2kb, it would be gzipped andexample.html.gz
was created.However, if later
example.html
is modified to content less than the threshold, gulp-gzip will only bypass it. Hence, you will end up with a newexample.html
yet oldexample.html.gz
. Your webserver will continue to serve old content (example.html.gz
).