update our static file handling to be more efficient and reduce server load

This commit is contained in:
Jeremy Edberg
2008-09-24 10:30:43 -07:00
parent 1456a12c34
commit 9eff19fb43
5 changed files with 4 additions and 5 deletions

View File

@@ -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)

View File

@@ -0,0 +1 @@
static/sureroute.html

View File

@@ -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
View File

@@ -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
View File

@@ -0,0 +1 @@
static/robots.txt