Re: uncachablefile
"M.T. Roebuck" <[email protected]> Mon, 28 Oct 2013 15:39:32 -0700
| Newsgroups | gmane.comp.web.polipo.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks a lot for the help! I rebuilt with your patch with a slight modification and I still need to test it. I also modified the regex to escape the period. The change I made was to use CACHE_NO instead of CACHE_NO_STORE as it seems the CACHE_NO_STORE still saves the data to memory. But it's just a guess and I haven't looked at the code. On Sat, 26 Oct 2013 23:23:07 -0700 "Stefan Schneider" <[email protected]> wrote: > Hello M.T., > One problem is your regexes aren't quite correct, you need to escape > the last period (e.g. '+\.mp3') to make it work. I'm not actually > sure why that is though... > > Once you've fixed that, Polipo should always re-request the file from > the server. It won't stop it from saving the file to disk however > (the behaviour seems to have always been like this). > > If you want to stop the disk saving behaviour you need to patch the > code slightly, you can use the patch included below: > > --- > http.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/http.c b/http.c > index 1d5c9f9..9cf82cf 100644 > --- a/http.c > +++ b/http.c > @@ -1050,6 +1050,7 @@ httpTweakCachability(ObjectPtr object) > } > > if(urlIsUncachable(object->key, object->key_size)) { > + object->cache_control |= CACHE_NO_STORE; > object->cache_control |= CACHE_NO_HIDDEN; > } > > -- > > Hope that helps, > Stefan > > On Sat, 26 Oct 2013 16:37:29 -0700, M.T. Roebuck > <[email protected]> wrote: > > > On Thu, 17 Oct 2013 09:58:32 -0700 > > "M.T. Roebuck" <[email protected]> wrote: > > > >> I created /etc/polipo/uncachable with this but I have it wrong. > >> How do I make it right? > >> > >> [^[:space:]]+.mp3 > >> [^[:space:]]+.mp4 > >> > >> Thanks for some help. > > > > Can anyone offer help on this problem? > > Is the project unofficially dead now? > > > > Also uncachable is spelled uncacheable. > > > > ------------------------------------------------------------------------------ > > October Webinars: Code for Performance > > Free Intel webinars can help you accelerate application performance. > > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the > > most from > > the latest Intel processors and coprocessors. See abstracts and > > register > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > > _______________________________________________ > > Polipo-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/polipo-users > > > -- > Using Opera's mail client: http://www.opera.com/mail/ -- M.T. Roebuck <[email protected]> ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk