Skip to content

Commit

Permalink
Removed the location block in expires.conf that matched .rss an…
Browse files Browse the repository at this point in the history
…d `.atom` since these almost always should go through Craft

Signed-off-by: Andrew Welch <andrew@nystudio107.com>
  • Loading branch information
khalwat committed May 16, 2019
1 parent 2d2b317 commit 03fcc2a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions nginx-partials/expires.conf
Expand Up @@ -10,13 +10,6 @@
# future (if the default expire rule is 1 month). Therefore, do not use a
# default expire rule with nginx unless your site is completely static

# Feed
location ~* \.(?:rss|atom)$ {
try_files $uri /index.php?$query_string;
expires 1h;
add_header Cache-Control "public";
}

# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp3|mp4|ogg|ogv|webm|htc|webp)$ {
# Uncomment these lines if you want to serve up a placeholder image for 404s
Expand Down

0 comments on commit 03fcc2a

Please sign in to comment.