I'm fighting against a unattractive user experience caused by the
slowness of the new v3 webui.

First thing I've found was "Browser Caching disabled" :-(

But:

To enable Browser Caching for static content in nginx I've added

expires max;

http://nginx.org/en/docs/http/ngx_http_headers_module.html#expires

to this nginx locations

- /SOGo.woa/WebServerResources/
- /SOGo/WebServerResources/
- (^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$)
- (^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources

Final config looks something like:

location /SOGo.woa/WebServerResources/
        {
                alias /usr/lib/GNUstep/SOGo/WebServerResources/;
                allow all;
                expires max;
        }

This change gives a (much) better score at google's pagespeed.
https://developers.google.com/speed/pagespeed/insights

One could update the wiki entry for nginx if this is substantial and
reliable ;-)

http://wiki.sogo.nu/nginxSettings

Greets,
Tilo

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to