Re: uncachablefile
"Stefan Schneider" <[email protected]> Sat, 26 Oct 2013 23:23:07 -0700
| Newsgroups | gmane.comp.web.polipo.user |
|---|---|
| Message-ID | <[email protected]> |
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/
------------------------------------------------------------------------------
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