Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
appconfig中的URL重写和页面压缩设置失效了么?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
马思奇  
View profile  
 More options Nov 7 2012, 3:55 am
From: 马思奇 <mas...@gmail.com>
Date: Wed, 7 Nov 2012 00:55:39 -0800 (PST)
Local: Wed, Nov 7 2012 3:55 am
Subject: appconfig中的URL重写和页面压缩设置失效了么?

配了这些:
handle:
- expire: if( path ~ "/media" ) time 864000
- expire: if( path ~ "media/ico/favicon.ico" ) time 8640000
- compress: if ( out_header["Content-type"]=="application/json" ) compress
- compress: if ( out_header["Content-type"]=="text/html" ) compress
- compress: if ( out_header["Content-Length"]>=4096 ) compress
- rewrite:  if ( !is_dir() && !is_file() && path ~ "favicon.ico" ) goto
"media/ico/favicon.ico"
- rewrite:  if ( !is_dir() && !is_file() && path ~ "/robots.txt" ) goto
"/static/robots.txt"
- rewrite:  if ( !is_dir() && !is_file() && path ~ "/weblukerverif.html" )
goto "/static/weblukerverif.html"
- rewrite:  if ( !is_dir() && !is_file() && path ~
"/googleca5f2e917b27f580.html" ) goto "/static/googleca5f2e917b27f580.html"
- rewrite:  if ( !is_dir() && !is_file() && path ~ "/bdsitemap.txt" ) goto
"/static/bdsitemap.txt"

之前是正常的,不知道从什么时候开始不起作用了...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Chan  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 4:00 am
From: Alan Chan <chanfung...@gmail.com>
Date: Wed, 7 Nov 2012 17:00:28 +0800
Local: Wed, Nov 7 2012 4:00 am
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

python runtime的config.yaml配置参见:

http://appstack.sinaapp.com/static/doc/release/testing/runtime.html#id4

rewrite不支持,压缩目前不支持。


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ma siqi  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 4:01 am
From: ma siqi <mas...@gmail.com>
Date: Wed, 7 Nov 2012 17:01:54 +0800
Local: Wed, Nov 7 2012 4:01 am
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

大概2~3个月之前是支持的啊,后来为什么取消了?什么时候支持?

在 2012年11月7日 下午5:00,Alan Chan <chanfung...@gmail.com>写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shuai Lin  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 4:04 am
From: Shuai Lin <linshuai2...@gmail.com>
Date: Wed, 7 Nov 2012 17:04:51 +0800
Local: Wed, Nov 7 2012 4:04 am
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

如果用 django,压缩可以加一个 'django.middleware.gzip.GZipMiddleware' 就能解决。其他的框架应该也不难

2012/11/7 ma siqi <mas...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Chan  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 4:12 am
From: Alan Chan <chanfung...@gmail.com>
Date: Wed, 7 Nov 2012 17:12:00 +0800
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

rewrite不会支持,python基本用不到这个。

页面压缩最近正在考虑加上。

2012/11/7 ma siqi <mas...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ma siqi  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 4:15 am
From: ma siqi <mas...@gmail.com>
Date: Wed, 7 Nov 2012 17:15:15 +0800
Local: Wed, Nov 7 2012 4:15 am
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

rank会支持么?

在 2012年11月7日 下午5:12,Alan Chan <chanfung...@gmail.com>写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ma siqi  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 4:15 am
From: ma siqi <mas...@gmail.com>
Date: Wed, 7 Nov 2012 17:15:57 +0800
Local: Wed, Nov 7 2012 4:15 am
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

不合理啊,JS或者CSS怎么办?也用django处理一遍

在 2012年11月7日 下午5:04,Shuai Lin <linshuai2...@gmail.com>写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Shuai Lin  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 4:20 am
From: Shuai Lin <linshuai2...@gmail.com>
Date: Wed, 7 Nov 2012 17:20:30 +0800
Local: Wed, Nov 7 2012 4:20 am
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

确实是个问题。用 django 来处理静态文件不太好。不过一般 js 和 css 都只下载一次,以后都是 304 Not modified 了吧。

2012/11/7 ma siqi <mas...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Chan  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 4:25 am
From: Alan Chan <chanfung...@gmail.com>
Date: Wed, 7 Nov 2012 17:25:57 +0800
Local: Wed, Nov 7 2012 4:25 am
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

2012/11/7 ma siqi <mas...@gmail.com>

> rank会支持么?

 不会。

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gue  
View profile   Translate to Translated (View Original)
 More options Nov 7 2012, 8:05 pm
From: gue <gue...@gmail.com>
Date: Thu, 8 Nov 2012 09:05:47 +0800
Local: Wed, Nov 7 2012 8:05 pm
Subject: Re: [SAEPy] appconfig中的URL重写和页面压缩设置失效了么?

http://appstack.sinaapp.com/static/doc/release/testing/runtime.html#id4

静态文件处理看这里

2012/11/7 Shuai Lin <linshuai2...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »