Skip to content

Commit

Permalink
Increase default cache lifetime for static files
Browse files Browse the repository at this point in the history
Google does not consider a lifetime of 30 days as long enough, but
6 months should work fine.

#7
  • Loading branch information
robertlemke committed May 5, 2022
1 parent 099f04c commit aeb16a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root-files/opt/flownative/lib/nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export NGINX_CACHE_BACKGROUND_UPDATE="${NGINX_CACHE_BACKGROUND_UPDATE:-off}"
export NGINX_CUSTOM_ERROR_PAGE_CODES="${NGINX_CUSTOM_ERROR_PAGE_CODES:-500 501 502 503}"
export NGINX_CUSTOM_ERROR_PAGE_TARGET="${NGINX_CUSTOM_ERROR_PAGE_TARGET:-}"
export NGINX_STATIC_FILES_LIFETIME=${NGINX_STATIC_FILES_LIFETIME:-30d}
export NGINX_STATIC_FILES_LIFETIME=${NGINX_STATIC_FILES_LIFETIME:-6M}
export PATH="${PATH}:${NGINX_BASE_PATH}/bin"
EOF
Expand Down

0 comments on commit aeb16a1

Please sign in to comment.