Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make compressed site friendly for hosted static sites. #293

Open
yikerman opened this issue Feb 21, 2022 · 5 comments
Open

Make compressed site friendly for hosted static sites. #293

yikerman opened this issue Feb 21, 2022 · 5 comments

Comments

@yikerman
Copy link

Is your feature request related to a problem? Please describe.
One of the benefits of static sites is it can be served through static site hosting providers. However when it comes to gzip compressed sites the wiki redirects the .json to .json.gz with a Content-Encoding:gzip http header. However not every (little) hosting providers have this kind of functionality.

Describe the solution you'd like
Instead of the full server side method, the client can have an idea about whether the site is compressed and fetch the gzips automatically.

@TBlueF
Copy link
Member

TBlueF commented Feb 21, 2022

This is (to my knowledge) not feasible:
If the server doesn't send the Content-Encoding: gzip header, then the browser doesn't do the decompressing natively. Which would mean that the web-app needs to manually decompress the tiles through JavaScript. Which (i tried, and) is incredible slow.

@TBlueF TBlueF closed this as completed Feb 21, 2022
@yikerman
Copy link
Author

What about pako? The benchmark indicates it’s only about 3 times slower than zlib itself.

@TBlueF TBlueF reopened this Feb 21, 2022
@TBlueF
Copy link
Member

TBlueF commented Feb 21, 2022

I am not sure what i tried before, and if i tired it with pako .. i can put this somewhere in the TODO, but testing this will be very low prio. And will probably not happen in the near future (unless someone else PRs it)

@yikerman
Copy link
Author

I totally understand this. I’ve found an alt btw. Thanks for all the support.

@TBlueF TBlueF moved this to TODO in TODO / Idea board Aug 10, 2022
@TBlueF TBlueF moved this from TODO to Distant Ideas / To be discussed in TODO / Idea board Jun 14, 2023
@ZacharyDuBois
Copy link

I feel this would be extremely nice to have. For example, S3 or B2 storage fronted with a CDN provider such as CloudFront, CDN77, or Bunny.net.

But that also begs the other request, push direct to an external storage and don't maintain a local copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Distant Ideas / To be discussed
Development

No branches or pull requests

3 participants