Skip to content

Performance: blank page because of timeout #5957

@labkode

Description

@labkode

Tested on ocis.owncloud.com with network throttling as depicted in the video:

web-performance.mov

To alleviate renders after initial page load we have the following directives in NGINX:

    location ^~ /
    {
      root /var/www/web;
      autoindex on;
      add_header Cache-Control "no-cache";
      etag on;
      gzip on;
    }

This is only and intermediate solution regarding caching.
Ideally only index.html should be exposed to this caching technique, the rest of the assets (JS, CSS, IMG, ...) would be handled with:

    location ^~ *js$
    {
      add_header Cache-Control "pubic,max-age= 31536000,immutable";
      gzip on;
    }

However, the last one can be applied only if the generated JS files have a suffix that changes on build or on checksum.

The previous configuration are just workarounds and do not help for the first render where people is blocked.
For that, a mechanism to optimise the loading or reduce the size of the payload is needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions