Allow serving of GZIP version of content from static source #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For example we might want to include bootstrap or Jquery (mobile even) in our project so we can have a nice UI that truly works offline (or when the internet drops out/unavailable).
On the ESP8266 it is particularly slow to server content and most likely serving 100kb or so will cause it to fail, quite easily the same content can be GZIPPED and the browser will use it happily but for JS/CSS we'll transfer 1/4 of the content making it much faster and less likely to cause ENOMEM.
-Enabled the WebApp to check for .gz with minimal of extra code, using
the try/catch so it doesn’t rely on os.path which may not exist
-Renamed ‘import re’ to ‘import ure as re’ as the example web app
didn’t run locally if you only have ure.