Skip to content

Commit a359cd6

Browse files
committed
Allow content to expire
1 parent 65990f3 commit a359cd6

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

_include/.htaccess

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# redirect rules to prevent old links from breaking
1+
# Allow removed content to expire
2+
<IfModule mod_expires.c>
3+
ExpiresActive on
4+
ExpiresByType text/html "access plus 1 hours"
5+
ExpiresDefault "access plus 1 days"
6+
</IfModule>
7+
8+
# Redirect rules to prevent old links from breaking
29
RewriteEngine On
310

411
RewriteCond %{HTTPS} off

content/.htaccess

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# redirect rules to prevent old links from breaking
1+
# Allow removed content to expire
2+
<IfModule mod_expires.c>
3+
ExpiresActive on
4+
ExpiresByType text/html "access plus 1 hours"
5+
ExpiresDefault "access plus 1 days"
6+
</IfModule>
7+
8+
# Redirect rules to prevent old links from breaking
29
RewriteEngine On
310

411
RewriteCond %{HTTPS} off

0 commit comments

Comments
 (0)