1Panel/cmd/server/nginx_conf/proxy_no_cache.conf
2023-04-24 17:53:05 +08:00

10 lines
186 B
Text

set $static_fileg 0;
if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
{
set $static_fileg 1;
expires 1m;
}
if ( $static_fileg = 0 )
{
add_header Cache-Control no-cache;
}