Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
978 Ansichten

hey, so I'm here after using WooCommerce for 15 years. We ran into some limitations and are looking at options.


So I installed Odoo 16 on a local VM using https: // www. rosehosting . com/ blog /how-to-install-odoo-16-on-ubuntu-22-04/#Step-8-Configure-Reverse-Proxy


(sorry for butchering that link. I can't post links because I'm "new")


It worked flawlessly, so I started testing. I'm kind of blown away by the feature rich set of enterprise tools in Odoo.


One of the first things I wanted to do was run the site through Pagespeed. My background is apache and litespeed, but from what I see Nginx has gzip compression enabled by default, except that it's not showing in my Google Dev tools.


This was on by default


user@odoo:/etc/nginx/sites-enabled$ cat /etc/nginx/nginx.conf | grep gzip

gzip on;


so I added it here


user@odoo:/etc/nginx/sites-enabled$ cat /etc/nginx/sites-enabled/odoosite | grep gzip


# common gzip

gzip_types text/css text/scss text/plain text/xml application/xml application/json application/javascript;

gzip on;


But in my network tools header I still get 


HTTP/1.0 200 OK

Content-Type: text/html; charset=utf-8

Connection: close

Server: Werkzeug/2.0.2 Python/3.10.12

Date: Thu, 10 Aug 2023 00:04:38 GMT

GET / HTTP/1.1

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7

Accept-Encoding: gzip, deflate

Accept-Language: en-US,en;q=0.9

Cache-Control: no-cache

Connection: keep-alive

Host: 172.16.1.93:8069

Pragma: no-cache

Upgrade-Insecure-Requests: 1

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36


Avatar
Verwerfen
Beste Antwort

Hi, I am facing similar issue, even www.pagespeed.web.dev shows gzip not ON, even I have it on in my config,......did you find a way how to fix it?

Avatar
Verwerfen