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

Using pre-gzipped assets #86

Open
hybridherbst opened this issue Oct 21, 2024 · 1 comment
Open

Using pre-gzipped assets #86

hybridherbst opened this issue Oct 21, 2024 · 1 comment

Comments

@hybridherbst
Copy link

Hi, we're gzipping files locally to reduce deployment size for some projects.
However, I can't figure out how to test such a build with servor – it just ends up showing me a directory with "index.html.gz" in it (besides others). Is there a flag to allow pre-gzipped content to be served?

@lukejacksonn
Copy link
Owner

Hey 👋 sorry for a late reply but if you look here in the code you can see that only files with the extensions ['js', 'css', 'html', 'json', 'xml', 'svg'] are gzipped by servor.

So if you don't want a file gzipped then I think you can give the file in question a path name that is not included in that list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants