curl-library
Re: Help, before I cry myself to death
Date: Tue, 5 Feb 2013 00:00:36 -0500
Thanks everyone for the input... I still havnt resolve the issue but it
appears that Amazon might be lying when it said it has propagated the cache
dump to all servers. At least that's the best sense I can make of it. I'll
post back...
On Mon, Feb 4, 2013 at 11:33 PM, Alan Wolfe <alan.wolfe_at_gmail.com> wrote:
> No idea on this issue specifically (sorry), but a handy little tip...
> if you ever want to defeat caching (like as a temporary work
> around...) you can append a random number onto the end of a URL and
> that basically defeats every single caching mechanism there is.
>
> For instance instead of:
> http://myurl.com
> and
> http://myurl.com?arg=1
>
> You do:
>
> http://myurl.com?r=4536
> and
> http://myurl.com?arg=1&t=7583
>
> Of course, each time you do a request you need to calculate a new random
> number.
>
> Hopefully you figure out the cause man, sorry to hear about the
> caching problems ):
>
> On Mon, Feb 4, 2013 at 8:23 PM, Jesse Nicholson
> <ascensionsystems_at_gmail.com> wrote:
> > I'm wondering if there is some way that CURL does local caching of HTTP
> > content? I'm developing an app that fetches up small html files and my
> > server is giving them to CURL through Amazon CloudFront. I had no issue
> till
> > today, when I realized that my server wasn't passing along the following
> in
> > the headers:
> >
> > rep.headers[2].name = "Cache-Control";
> > rep.headers[2].value = "max-age=86400";
> >
> > I added these headers today, recompiled my server application and Amazon
> > finally started caching, for the first time (duh, pretty dumb bug).
> Anyway
> > now that this is being passed in the headers, it would seem that CURL has
> > learned to cache the objects locally somehow as well. I cannot find any
> > documentation talking about this even being possible, so I'm starting to
> > wonder if I'm going crazy. To give a little more nfo, I told amazon to
> flush
> > the cache on a particular html file. I confirmed that the new content is
> > coming through on every single browser on my computer. However, when I
> log
> > the output from CURL, it's still loading the old cached data. I have no
> idea
> > what in the heck is happening... and any insight would be greatly
> > appreciate. Thanks,
> >
> > --
> > Jesse Nicholson
> >
> > -------------------------------------------------------------------
> > List admin: http://cool.haxx.se/list/listinfo/curl-library
> > Etiquette: http://curl.haxx.se/mail/etiquette.html
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
-- Jesse Nicholson
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-05