linagora / tmail-flutter

A multi-platform (Flutter) application for reading your emails, with your favorite devices, using the JMAP protocol!
GNU Affero General Public License v3.0
322 stars 73 forks source link

Web App is very slow to load due to misconfiguration of cache-control #3256

Open guimard opened 2 hours ago

guimard commented 2 hours ago

Description

When starting Tmail-Web on a new window (not private), all content is reloaded without using HTTP-304 mechanism.

Expected result

Use cache or update headers to allow HTTP-304 mechanism

Current behavior

Tmail-net

Context

Firefox (same with Chrome)

Additional information

Render app unusable inside customer network

dab246 commented 2 hours ago

IMO, Also related https://github.com/linagora/tmail-flutter/issues/1507#issuecomment-1543678315

chibenwa commented 2 hours ago

Relevant config files:

What chatGPT says about

    add_header Cache-Control "no-cache";
    etag on;

image

chibenwa commented 2 hours ago

image