mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
186 B
11 lines
186 B
2 years ago
|
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;
|
||
|
}
|