Skip to content

Commit

Permalink
fix: revert additions to php/craftcms expires in nginx-site.conf, fixes
Browse files Browse the repository at this point in the history
ddev#6087 (ddev#6093) [skip ci]
  • Loading branch information
rfay authored Apr 15, 2024
1 parent d04b047 commit 45ba4e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions pkg/ddevapp/webserver_config_assets/nginx-site-craftcms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ server {
fastcgi_param HTTPS $fcgi_https;
}

# Expire rules for static content

# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|webp|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}

# Prevent clients from accessing hidden files (starting with a dot)
# This is particularly important if you store .htpasswd files in the site hierarchy
# Access to `/.well-known/` is allowed.
Expand Down
9 changes: 0 additions & 9 deletions pkg/ddevapp/webserver_config_assets/nginx-site-php.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,6 @@ server {
fastcgi_param HTTPS $fcgi_https;
}

# Expire rules for static content

# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|webp|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}

# Prevent clients from accessing hidden files (starting with a dot)
# This is particularly important if you store .htpasswd files in the site hierarchy
# Access to `/.well-known/` is allowed.
Expand Down

0 comments on commit 45ba4e9

Please sign in to comment.