You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cache {
static {
# Default `Cache-Control` for all static files,# if specific mime type is not defined.default_cache_control = "public, max-age=31536000"# (Optional) Define by mime types, if mime is not present then default is applied.# Config is very flexible to define by mime type.## Create a unique name and provide `mime` with comma separated value# and `cache_control`.
mime_types {
css_js {
mime = "text/css, application/javascript"cache_control = "public, max-age=604800, must-revalidate, proxy-revalidate"
}
images {
mime = "image/jpeg, image/png, image/gif, image/svg+xml, image/x-icon"cache_control = "public, max-age=2628000, must-revalidate, proxy-revalidate"
}
}
}
}
Goal is achieve configurable
Cache-Control
header for static files.Cache-Control
configurationThe text was updated successfully, but these errors were encountered: