fixed streamer gzip expiration, thanks Niphlod
This commit is contained in:
@@ -29,7 +29,7 @@ update:
|
|||||||
wget -O gluon/contrib/simplejsonrpc.py http://rad2py.googlecode.com/hg/ide2py/simplejsonrpc.py
|
wget -O gluon/contrib/simplejsonrpc.py http://rad2py.googlecode.com/hg/ide2py/simplejsonrpc.py
|
||||||
echo "remember that pymysql was tweaked"
|
echo "remember that pymysql was tweaked"
|
||||||
src:
|
src:
|
||||||
echo 'Version 2.3.2 ('`date +%Y-%m-%d\ %H:%M:%S`') stable' > VERSION
|
echo 'Version 2.3.2 ('`date +%Y-%m-%d\ %H:%M:%S`') dev' > VERSION
|
||||||
### rm -f all junk files
|
### rm -f all junk files
|
||||||
make clean
|
make clean
|
||||||
### clean up baisc apps
|
### clean up baisc apps
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
Version 2.3.2 (2012-12-17 08:59:58) stable
|
Version 2.3.2 (2012-12-17 17:13:45) dev
|
||||||
|
|||||||
+1
-1
@@ -100,7 +100,7 @@ def stream_file_or_304_or_206(
|
|||||||
enc = request.env.http_accept_encoding
|
enc = request.env.http_accept_encoding
|
||||||
if enc and 'gzip' in enc and not 'Content-Encoding' in headers:
|
if enc and 'gzip' in enc and not 'Content-Encoding' in headers:
|
||||||
gzipped = static_file + '.gz'
|
gzipped = static_file + '.gz'
|
||||||
if os.path.isfile(gzipped) and os.path.getmtime(gzipped) > modified:
|
if os.path.isfile(gzipped) and os.path.getmtime(gzipped) >= modified:
|
||||||
static_file = gzipped
|
static_file = gzipped
|
||||||
fsize = os.path.getsize(gzipped)
|
fsize = os.path.getsize(gzipped)
|
||||||
headers['Content-Encoding'] = 'gzip'
|
headers['Content-Encoding'] = 'gzip'
|
||||||
|
|||||||
Reference in New Issue
Block a user