Skip to content

Commit b6e17de

Browse files
committed
update
1 parent 487d872 commit b6e17de

25 files changed

Lines changed: 46 additions & 46 deletions

File tree

custom-200/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
header("HTTP/1.1 200 OK");
55
header("Content-Location: ".$_GET["url"]);
66
header("Content-Type:".base64_decode($_GET["content-type"]));
7-
header("Cache-Control: no-store, no-cache, must-revalidate");
7+
header("Cache-Control: max-age=0, must-revalidate, no-cache, no-store, private");
88
header("Pragma: no-cache");
99
echo base64_decode($_GET["body"]);

custom-201/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
header("HTTP/1.1 201 Created");
55
header("Location: ".$_GET["url"]);
66
header("Content-Type:".base64_decode($_GET["content-type"]));
7-
header("Cache-Control: no-store, no-cache, must-revalidate");
7+
header("Cache-Control: max-age=0, must-revalidate, no-cache, no-store, private");
88
header("Pragma: no-cache");
99
echo base64_decode($_GET["body"]);

custom-30x/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
header("HTTP/1.1 ".$_GET["code"]." Found");
55
header("Location: ".$_GET["url"]);
66
header("Content-Type:".base64_decode($_GET["content-type"]));
7-
header("Cache-Control: no-store, no-cache, must-revalidate");
7+
header("Cache-Control: max-age=0, must-revalidate, no-cache, no-store, private");
88
header("Pragma: no-cache");
99
echo base64_decode($_GET["body"]);

htaccess/csv-with-body-md/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RewriteRule 308-([^/-]*)-(.*).c.csv$ $1://169.254.169.254/$2 [L,R=308,NC]
5858

5959
# Always set the Content-Type header text/csv
6060
Header always set Content-Type text/csv
61-
# Always set Cache-Control to no-cache no-store must-revalidate
62-
Header always set Cache-Control "no-store, no-cache, must-revalidate"
61+
# Always set Cache-Control to max-age=0, must-revalidate, no-cache, no-store, private
62+
Header always set Cache-Control "max-age=0, must-revalidate, no-cache, no-store, private"
6363
# Always set Pragma to no-cache
6464
Header always set Pragma no-cache

htaccess/csv-with-body/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).c.csv$ $1://$2/$3 [L,R=308,NC]
5858

5959
# Always set the Content-Type header text/csv
6060
Header always set Content-Type text/csv
61-
# Always set Cache-Control to no-cache no-store must-revalidate
62-
Header always set Cache-Control "no-store, no-cache, must-revalidate"
61+
# Always set Cache-Control to max-age=0, must-revalidate, no-cache, no-store, private
62+
Header always set Cache-Control "max-age=0, must-revalidate, no-cache, no-store, private"
6363
# Always set Pragma to no-cache
6464
Header always set Pragma no-cache

htaccess/csv-without-body-md/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RewriteRule 308-([^/-]*)-(.*).c.csv$ $1://169.254.169.254/$2 [L,R=308,NC]
5858

5959
# Always set the Content-Type header text/html
6060
Header always set Content-Type text/html
61-
# Always set Cache-Control to no-cache no-store must-revalidate
62-
Header always set Cache-Control "no-store, no-cache, must-revalidate"
61+
# Always set Cache-Control to max-age=0, must-revalidate, no-cache, no-store, private
62+
Header always set Cache-Control "max-age=0, must-revalidate, no-cache, no-store, private"
6363
# Always set Pragma to no-cache
6464
Header always set Pragma no-cache

htaccess/csv-without-body/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).c.csv$ $1://$2/$3 [L,R=308,NC]
5858

5959
# Always set the Content-Type header text/html
6060
Header always set Content-Type text/html
61-
# Always set Cache-Control to no-cache no-store must-revalidate
62-
Header always set Cache-Control "no-store, no-cache, must-revalidate"
61+
# Always set Cache-Control to max-age=0, must-revalidate, no-cache, no-store, private
62+
Header always set Cache-Control "max-age=0, must-revalidate, no-cache, no-store, private"
6363
# Always set Pragma to no-cache
6464
Header always set Pragma no-cache

htaccess/img-with-body-md/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RewriteRule 308-([^/-]*)-(.*).i.jpg$ $1://169.254.169.254/$2 [L,R=308,NC]
5858

5959
# Always set the Content-Type header image/jpeg
6060
Header always set Content-Type image/jpeg
61-
# Always set Cache-Control to no-cache no-store must-revalidate
62-
Header always set Cache-Control "no-store, no-cache, must-revalidate"
61+
# Always set Cache-Control to max-age=0, must-revalidate, no-cache, no-store, private
62+
Header always set Cache-Control "max-age=0, must-revalidate, no-cache, no-store, private"
6363
# Always set Pragma to no-cache
6464
Header always set Pragma no-cache

htaccess/img-with-body/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RewriteRule 308-([^/-]*)-([^/-]*)-(.*).i.jpg$ $1://$2/$3 [L,R=308,NC]
5858

5959
# Always set the Content-Type header image/jpeg
6060
Header always set Content-Type image/jpeg
61-
# Always set Cache-Control to no-cache no-store must-revalidate
62-
Header always set Cache-Control "no-store, no-cache, must-revalidate"
61+
# Always set Cache-Control to max-age=0, must-revalidate, no-cache, no-store, private
62+
Header always set Cache-Control "max-age=0, must-revalidate, no-cache, no-store, private"
6363
# Always set Pragma to no-cache
6464
Header always set Pragma no-cache

htaccess/img-without-body-md/.htaccess

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RewriteRule 308-([^/-]*)-(.*).i.jpg$ $1://169.254.169.254/$2 [L,R=308,NC]
5858

5959
# Always set the Content-Type header text/html
6060
Header always set Content-Type text/html
61-
# Always set Cache-Control to no-cache no-store must-revalidate
62-
Header always set Cache-Control "no-store, no-cache, must-revalidate"
61+
# Always set Cache-Control to max-age=0, must-revalidate, no-cache, no-store, private
62+
Header always set Cache-Control "max-age=0, must-revalidate, no-cache, no-store, private"
6363
# Always set Pragma to no-cache
6464
Header always set Pragma no-cache

0 commit comments

Comments
 (0)