the config.py file :
# CirruxCache provides dynamic HTTP caching on AppEngine (CDN like)
# Copyright (C) 2009 Samuel Alba <
sam....@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
#
"""CirruxCache configuration file
"""
from lib import cache, redirect, forward, image
urls = {}
# EDIT BELOW
urls['default'] = (
#'(/debug/.*)', 'Debug',
'(/.*(?:\.jpg|css|js|gif|png|pdf|ico))$', 'config.Static'
)
# POP definition
# You can define and configure your Point Of Presence
class Static(cache.Service):
origin = '
http://www.calendriergratuit.fr'
allowFlushFrom = ['127.0.0.1']
maxTTL = 31104000
forceTTL = 31104000
ignoreQueryString = True
> Hi,
>
> sorry for the delay. Yes, I think it is a config problem, because
> CirruxCache sets the Expires header with value of 'now + max-age'.
>
> Could you attach your whole configuration (privately if you prefers)?
>
> Thanks,
>
> - Sam
>
>
>
>
>
>
>
>
>
> On Mon, Nov 8, 2010 at 11:35 AM, pioc <
julien.darri...@gmail.com> wrote:
> > Hi, i have a problem with Expires Headers.
>
> > On my site, i have a js filehttp://
www.calendriergratuit.fr
> > My expires header for this file is :
> >
http://www.calendriergratuit.fr/calendrier.js
>
> > HTTP/1.1 200 OK
> > Set-Cookie: 90plan=R3938678685; path=/; expires=Wed, 10-Nov-2010
> > 22:35:15 GMT
> > Date: Mon, 08 Nov 2010 10:24:52 GMT
> > Server: Apache/2.2.X (OVH)
> > Last-Modified: Wed, 03 Nov 2010 21:14:46 GMT
> > Accept-Ranges: bytes
> > Cache-Control: max-age=31536000
> > Expires: Tue, 08 Nov 2011 10:24:52 GMT
> > Vary: Accept-Encoding,User-Agent
> > Content-Encoding: gzip
> > Content-Length: 12457
> > Keep-Alive: timeout=5, max=100
> > Connection: Keep-Alive
> > Content-Type: application/javascript
> > ----------------------------------------------------------
>
> > Expires is set to 08 Nov 2011 ====> GOOD
>
> > With Cirruxcache, on my cdnhttp://
cdnpioc2.appspot.com/calendrier.js,