ATTENTION! The process of updating WiKi to version Eco 10.x has begun. Those wishing to participate can find out more Information on our ECO Contribution Wiki Discord.
From April 26 to May 12, errors may occur in the Wiki, as we will be carrying out a major update to the information processing modules.


User:LetterN

From Eco - English Wiki
Revision as of 10:29, 31 May 2023 by LetterN (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Technical guides[edit | edit source]

Optimization - Web Interface[edit | edit source]

If you are running your Web Interface behind Cloudflare, you can configure caching to improve transfer time as the default server is slow on transferring. Here is a config using Cache Rules on your Cloudflare Dashboard. Make sure to replace YOUR-DOMAIN with your domain you used

Set this as a new first rule, you can name it "eco optimizion - do not cache the api endpoint". Make sure to set "Bypass cache" so this does not get cached.

(
    http.host eq "YOUR-DOMAIN" 
    and (http.request.uri.path contains "/api" or http.request.uri.path contains "/Layers")
)

Create a second rule, this is for caching assets and static objects. Make sure to set "Eligible for cache" and "Override origin" on the "Edge TTL". You can set the TTL higher, i recommend 14 days or higher. For "Browser TTL" You can make it 2 days or higher

(
    http.host eq "YOUR-DOMAIN" 
    and not http.request.uri.path contains "/api" 
    and (http.request.uri.path contains "/css" or http.request.uri.path contains "/js" or http.request.uri.path contains "/img")
)