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

bug:🐛 gzip not enabled #864

Open
Gustav-Eikaas opened this issue Oct 25, 2024 · 0 comments
Open

bug:🐛 gzip not enabled #864

Gustav-Eikaas opened this issue Oct 25, 2024 · 0 comments
Assignees

Comments

@Gustav-Eikaas
Copy link

It looks like when nginx serves its assets it is not compressed. By hovering the values in the size column you get a tooltip saying how many bytes were transferred and how big the uncompressed file is. If these values are identical compression is off.
Image

Should be as easy as this but requires testing

server {
    listen              8080;
    listen              [::]:8080;
    absolute_redirect   off;

+    gzip on;
+    gzip_types text/css application/javascript image/svg+xml text/plain;
    
    root /usr/share/nginx/html;

    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }
    location /index.html {
        add_header Cache-Control "no-cache";
    }
}
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