Skip to main content

Upstream and Location

Upstream

The upstream is your origin server, where content is read from. From the "Upstreams" tab on the gateway page, add your server.

Location

A location determines which path of your site's address goes to which upstream. When creating a location, fill in these fields:

FieldDescription
NameThe location's name
UpstreamOne of your defined upstreams
Path typeprefix (starts with) or exact (exact match)
Pathe.g., / or /api

Example:

Path / → Web server upstream
Path /api → API server upstream

Cache settings

Cache settings are determined when creating a location:

SettingDefaultDescription
Cache levelstandardstandard enables caching, bypass disables it
Browser TTL3600 secondsHow long content is kept in the user's browser cache
Edge TTL3600 secondsHow long content is kept on Novin Cloud's servers
Error response TTL3600 secondsHow long error responses are kept
Stale TTL3600 secondsHow long a stale version is served when the upstream is unavailable
Immutable cacheOffFor files that never change
Cache settings can't be edited after creation

Editing a location isn't currently possible. To change cache settings, you must delete the location and create it again with the new values.

Cache purge

Manually purging the cache through the console isn't available yet. To roll out changes quickly, you can set a lower edge TTL when creating the location, or change static file names when publishing a new version (e.g., app.v2.js).