Dynamic pop possible ?

6 views
Skip to first unread message

mortal

unread,
Jun 1, 2011, 3:46:23 AM6/1/11
to CirruxCache
Hi. i was wondering if it would be possible to make it more dynamic ?

lets say i have several domains. and wanted to add new once on the
fly. without the need to configure and deploy each time. ?

either to let the app automaticaly fetch the url

class Static(cache.Service):
origin = 'http://'.$fetchurl
maxTTL = 2592000 # 1 month
ignoreQueryString = True


or include the complete url in the request http://mycdn.appspot.com/mydomain.com/images/myimage.jpg

Samuel Alba

unread,
Jun 3, 2011, 11:26:06 AM6/3/11
to cirru...@googlegroups.com
Hi,

yes I planned to add an option to do it. Only an option ecause it
could be a security problem to let everyone use your appengine account
directly to cache objects (by modifying the URL), maybe we can couple
this with a list of authorized domains, but it means that we'll need
to edit and push again...

- Sam

> --
> Project page: http://code.google.com/p/cirruxcache/
> News: http://www.shad.cc/tag/cirruxcache
> Groups: http://groups.google.com/group/cirruxcache
>

--
Samuel Alba
@sam_alba

mortal

unread,
Jun 3, 2011, 7:04:41 PM6/3/11
to CirruxCache
yes. i thought about that too
i guess its too slow to use the ip as whitelist ?

or some kind of authorization.
this is just an example.
let the app look at a specific place on the domain for a specified
code/file.
but thats time consuming. unless it could be stored for future use

or perhaps on the first request on a new domain. uploading a specific
file. and only get access to the app if that file exists.



well. as you probably have guessed. im not a python programmer and i
know very little of the limitations. and whats best. but you know.
sometimes the best solutions comes from someone who does not think of
limitations. :)



On 3 Jun., 17:26, Samuel Alba <sam.a...@gmail.com> wrote:
> Hi,
>
> yes I planned to add an option to do it. Only an option ecause it
> could be a security problem to let everyone use your appengine account
> directly to cache objects (by modifying the URL), maybe we can couple
> this with a list of authorized domains, but it means that we'll need
> to edit and push again...
>
> - Sam
>
>
>
>
>
>
>
>
>
> On Wed, Jun 1, 2011 at 12:46 AM, mortal <to.mor...@gmail.com> wrote:
> > Hi. i was wondering if it would be possible to make it more dynamic ?
>
> > lets say i have several domains. and wanted to add new once on the
> > fly. without the need to configure and deploy each time. ?
>
> > either to let the app automaticaly fetch the url
>
> > class Static(cache.Service):
> >    origin = 'http://'.$fetchurl
> >    maxTTL = 2592000 # 1 month
> >    ignoreQueryString = True
>
> > or include the complete url in the requesthttp://mycdn.appspot.com/mydomain.com/images/myimage.jpg
Reply all
Reply to author
Forward
0 new messages