Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
6699 Переглядів

Typical Odoo installation guide suggests to configure Nginx to cache paths like this:

    /web/static

But what about paths like this:

    /web/image
    /website/static
    /web_sale/static

I would guess that they should also be cached. But what I'm wondering on is this this:

    /web/content

This is the path to `js` and `css` from `assets_common`, `assets_frontend` etc.

Does caching them can lead to some problems? I don't really see why it would be the case.

This is my Nginx config:

location ~* /[0-9a-zA-Z_]*/(static|image|content)/ {
    proxy_cache_valid 200 90m;
    proxy_buffering    on;
    expires 864000;
    proxy_pass http://odoo;
}


Аватар
Відмінити

I've tested it, but it seems it gives some negative impact on gtmetrix.com score.

Related Posts Відповіді Переглядів Дія
2
груд. 24
4647
1
лист. 24
3439
1
трав. 24
3304
3
лист. 23
1779
2
квіт. 23
18618