mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
update our static file handling to be more efficient and reduce server load
This commit is contained in:
@@ -26,10 +26,6 @@ rewrites = (#these first two rules prevent the .embed rewrite from
|
||||
("^/_(.*)", "/_$1"),
|
||||
("^/static/(.*\.js)", "/static/$1"),
|
||||
#This next rewrite makes it so that all the embed stuff works.
|
||||
("^(.*)(?<!button)(\.js)$", "$1.embed"),
|
||||
("^/favicon.ico$", "/static/favicon.ico"),
|
||||
("^/robots.txt$", "/static/robots.txt"),
|
||||
("^/akamai-sureroute-test-object.html$", "/static/sureroute.html"),
|
||||
("^/apple-touch-icon.png$", "/static/apple-touch-icon.png"))
|
||||
("^(.*)(?<!button)(\.js)$", "$1.embed"))
|
||||
|
||||
rewrites = tuple((re.compile(r[0]), r[1]) for r in rewrites)
|
||||
|
||||
1
r2/r2/public/akamai-sureroute-test-object.html
Symbolic link
1
r2/r2/public/akamai-sureroute-test-object.html
Symbolic link
@@ -0,0 +1 @@
|
||||
static/sureroute.html
|
||||
1
r2/r2/public/apple-touch-icon.png
Symbolic link
1
r2/r2/public/apple-touch-icon.png
Symbolic link
@@ -0,0 +1 @@
|
||||
static/apple-touch-icon.png
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 18 B |
1
r2/r2/public/favicon.ico
Symbolic link
1
r2/r2/public/favicon.ico
Symbolic link
@@ -0,0 +1 @@
|
||||
static/favicon.ico
|
||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 18 B |
1
r2/r2/public/robots.txt
Symbolic link
1
r2/r2/public/robots.txt
Symbolic link
@@ -0,0 +1 @@
|
||||
static/robots.txt
|
||||
Reference in New Issue
Block a user