Header

16 views
Skip to first unread message

gr

unread,
Oct 14, 2010, 3:20:38 AM10/14/10
to CirruxCache
Hello,

First, congratulation for your work and excuse me in advance for my
ignorance and my english.

I have see you note :"Definitely, Expires and Cache-Control max-age
headers are generated
from the TTL".
But i increase forceTTL and maxTTL or both, but the expires header
doesn't change even if the date change. I don't understand.
for example :
Accept-Ranges bytes
Vary Accept-Encoding,User-Agent
Cache-Control max-age=31536000, public
Content-Type application/javascript
Last-Modified Thu, 07 Oct 2010 08:33:23 GMT
Expires Fri, 12 Nov 2010 16:31:07 GMT
Content-Encoding gzip
Date Thu, 14 Oct 2010 06:58:15 GMT
Server Google Frontend
Content-Length 2335

With the basic configuration for admin, i don't access the admin
panel. Is it http://myapp.appspot.com/_admin/ ? :
urls['default'] = (
'/_cron/expired', 'Cron',
'/_admin/(.*)', 'Admin',
'(/.*)', 'Static'
)

Samuel Alba

unread,
Oct 14, 2010, 3:25:39 AM10/14/10
to cirru...@googlegroups.com
On Thu, Oct 14, 2010 at 9:20 AM, gr <webgree...@gmail.com> wrote:
> I have see you note :"Definitely, Expires and Cache-Control max-age
> headers are generated
> from the TTL".
> But i increase forceTTL and maxTTL or both, but the expires header
> doesn't change even if the date change. I don't understand.
> for example  :
> Accept-Ranges   bytes
> Vary    Accept-Encoding,User-Agent
> Cache-Control   max-age=31536000, public
> Content-Type    application/javascript
> Last-Modified   Thu, 07 Oct 2010 08:33:23 GMT
> Expires Fri, 12 Nov 2010 16:31:07 GMT
> Content-Encoding        gzip
> Date    Thu, 14 Oct 2010 06:58:15 GMT
> Server  Google Frontend
> Content-Length  2335

Could you give me an URL where I can test (both from appspot and from
your origin). And also CC me your configfile.

> With the basic configuration for admin, i don't access the admin
> panel. Is it http://myapp.appspot.com/_admin/ ? :
> urls['default'] = (
>                '/_cron/expired', 'Cron',
>                '/_admin/(.*)', 'Admin',
>                '(/.*)', 'Static'
>                )

You should access... Once I get your config, I will check.

Thanks,


--
Samuel Alba

Cachy

unread,
Oct 14, 2010, 3:46:23 AM10/14/10
to CirruxCache
Hello gr, I wish I could help here, but I'm a noob,
would you mind sharing how you deployed it and what you configured?
I'm trying to get it work , made the configuration as described in the
documentation and the application has been deployed, but couldn't
succeed till date and I have no idea of what I'm missing.

gr

unread,
Oct 18, 2010, 7:31:06 AM10/18/10
to CirruxCache
Hello, thanks four your answers.

I have test with another app engine and it's ok. I think it's because
i didn't flush the cache of CirruxCache .
How i can flush all CirruxCache cache ?

My 2 cdn with the same config :
http://webgreenproject.appspot.com/
http://webgreenproject1.appspot.com/

With the first the headers (http://webgreenproject.appspot.com/js/
imgFlow.js) :
HTTP/1.1 200 OK
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Cache-Control: max-age=31536000, public
Content-Type: application/javascript
Last-Modified: Thu, 07 Oct 2010 08:33:23 GMT
Expires: Fri, 12 Nov 2010 16:31:07 GMT
Content-Encoding: gzip
Date: Mon, 18 Oct 2010 10:48:38 GMT
Server: Google Frontend
Content-Length: 2335
==> that's seem strange, the max-age=31536000 but the expires =12 Nov
2010, only the expires
will be modified by maxTTL ?

With the second headers (http://webgreenproject1.appspot.com/js/
imgFlow.js)
HTTP/1.1 200 OK
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Cache-Control: max-age=31536000, public
Content-Type: application/javascript
Last-Modified: Thu, 07 Oct 2010 08:33:23 GMT
Expires: Tue, 18 Oct 2011 10:19:07 GMT
Content-Encoding: gzip
Date: Mon, 18 Oct 2010 10:56:07 GMT
Server: Google Frontend
Content-Length: 2335
==> Super, it's ok

My website : http://www.webgreenproject.com

------------------------------------------------------------------
app.yaml :
application: webgreenproject1
version: 1
runtime: python
api_version: 1

handlers:
- url: /_cron/expired
script: app.py
login: admin

- url: /_admin/.*
script: app.py
login: admin

- url: /.*
script: app.py

---------------------------------
app.py :
urls = {}

urls['default'] = (
'/_cron/expired', 'Cron',
'/_admin/(.*)', 'Admin',
'(/.*)', 'Static'
)

# POP definition
# You can define and configure your Point Of Presence
class Static(cache.Service):
origin = 'http://static1.webgreenproject.com'
maxTTL = 31536000 # 1 year
ignoreQueryString = True
forwardPost = False

---------------------------------------
cron.yaml
cron:
- description: clean expired entries
url: /_cron/expired
schedule: every monday 04:00


for http://webgreenproject1.appspot.com/_admin/
and for http://webgreenproject1.appspot.com/_cron/expired
i have " internal server error"(Error 500) when i'm logged and the
cron seem to be failed, on the app engine interface in cron jobs i
have : 2010/10/18 04:00:00 on time Failed

Logs errors for http://webgreenproject1.appspot.com/_admin/

1.
10-18 04:25AM 58.748 /_admin/ 500 31ms 38cpu_ms 0kb Mozilla/5.0
(Windows; U; Windows NT 5.1; fr; rv:1.9.2.10) Gecko/20100914 Firefox/
3.6.10,gzip(gfe)
See details

MY IP - webgreenproject [18/Oct/2010:04:25:58 -0700] "GET /
_admin/ HTTP/1.1" 500 66 - "Mozilla/5.0 (Windows; U; Windows NT 5.1;
fr; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe)"
"webgreenproject1.appspot.com" ms=31 cpu_ms=38 api_cpu_ms=0
cpm_usd=0.001160

2.
E 10-18 04:25AM 58.772 Traceback (most recent call last):
3.
E 10-18 04:25AM 58.772 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/contrib/web/application.py",
line 242, in process
4.
E 10-18 04:25AM 58.773 return self.handle()
5.
E 10-18 04:25AM 58.773 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/contrib/web/application.py",
line 233, in handle
6.
E 10-18 04:25AM 58.773 return self._delegate(fn, self.fvars,
args)
7.
E 10-18 04:25AM 58.773 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/contrib/web/application.py",
line 415, in _delegate
8.
E 10-18 04:25AM 58.773 return handle_class(cls)
9.
E 10-18 04:25AM 58.773 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/contrib/web/application.py",
line 390, in handle_class
10.
E 10-18 04:25AM 58.774 return tocall(*args)
11.
E 10-18 04:25AM 58.774 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/services/admin.py", line 34, in
GET
12.
E 10-18 04:25AM 58.774 return self.__request(request)
13.
E 10-18 04:25AM 58.774 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/services/admin.py", line 44, in
__request
14.
E 10-18 04:25AM 58.774 f.close()
15.
E 10-18 04:25AM 58.775 UnboundLocalError: local variable 'f'
referenced before assignment
16.
E 10-18 04:25AM 58.775


Logs errors for http://webgreenproject1.appspot.com/_cron/expired

1.
10-18 04:07AM 42.736 /_cron/expired 500 34ms 19cpu_ms 0kb
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.10) Gecko/
20100914 Firefox/3.6.10,gzip(gfe)
See details

MY IP - webgreenproject [18/Oct/2010:04:07:42 -0700] "GET /_cron/
expired HTTP/1.1" 500 66 - "Mozilla/5.0 (Windows; U; Windows NT 5.1;
fr; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe)"
"webgreenproject1.appspot.com" ms=35 cpu_ms=19 api_cpu_ms=0
cpm_usd=0.000628

2.
E 10-18 04:07AM 42.758 Traceback (most recent call last):
3.
E 10-18 04:07AM 42.758 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/contrib/web/application.py",
line 242, in process
4.
E 10-18 04:07AM 42.759 return self.handle()
5.
E 10-18 04:07AM 42.759 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/contrib/web/application.py",
line 233, in handle
6.
E 10-18 04:07AM 42.760 return self._delegate(fn, self.fvars,
args)
7.
E 10-18 04:07AM 42.760 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/contrib/web/application.py",
line 415, in _delegate
8.
E 10-18 04:07AM 42.760 return handle_class(cls)
9.
E 10-18 04:07AM 42.760 File "/base/data/home/apps/
webgreenproject1/1.345583778602751126/contrib/web/application.py",
line 390, in handle_class
10.
E 10-18 04:07AM 42.761 return tocall(*args)
11.
E 10-18 04:07AM 42.761 TypeError: GET() takes exactly 2
arguments (1 given)
12.
E 10-18 04:07AM 42.761
Reply all
Reply to author
Forward
0 new messages