forked from MarseyWorld/MarseyWorld
sneed
parent
321235243c
commit
7878d397ea
|
@ -138,7 +138,7 @@ def static_service(path):
|
||||||
resp.headers.add("Content-Type", "text/css")
|
resp.headers.add("Content-Type", "text/css")
|
||||||
resp.headers.remove("Cache-Control")
|
resp.headers.remove("Cache-Control")
|
||||||
resp.headers.add("Cache-Control", "public, max-age=86400")
|
resp.headers.add("Cache-Control", "public, max-age=86400")
|
||||||
elif request.path.endswith('.gif') or request.path.endswith('.png') or request.path.endswith('.ttf') or request.path.endswith('.woff') or request.path.endswith('.woff2'):
|
elif request.path.endswith('.gif') or request.path.endswith('.ttf') or request.path.endswith('.woff') or request.path.endswith('.woff2'):
|
||||||
resp.headers.remove("Cache-Control")
|
resp.headers.remove("Cache-Control")
|
||||||
resp.headers.add("Cache-Control", "public, max-age=31556952")
|
resp.headers.add("Cache-Control", "public, max-age=31556952")
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
new BugController({
|
new BugController({
|
||||||
imageSprite: "/assets/images/fly-sprite.png",
|
imageSprite: "/assets/images/fly-sprite.gif",
|
||||||
canDie: false,
|
canDie: false,
|
||||||
minBugs: 5,
|
minBugs: 5,
|
||||||
maxBugs: 30,
|
maxBugs: 30,
|
||||||
|
|
|
@ -181,7 +181,7 @@
|
||||||
{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") <= 5 else 100 %}
|
{% set maxbugs = 20*p.award_count("shit") if p.award_count("shit") <= 5 else 100 %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
new BugController({
|
new BugController({
|
||||||
imageSprite: "/assets/images/fly-sprite.png",
|
imageSprite: "/assets/images/fly-sprite.gif",
|
||||||
canDie: false,
|
canDie: false,
|
||||||
minBugs: {{minbugs}},
|
minBugs: {{minbugs}},
|
||||||
maxBugs: {{maxbugs}},
|
maxBugs: {{maxbugs}},
|
||||||
|
|
Loading…
Reference in New Issue