I use Ubuntu, and Google Chrome mostly. How can I kill these HTTP headers, so that my browser caches this data? I believe it is XHR. Here are the relevant HTTP response headers:

Cache-Control:no-cache, no-store, must-revalidate
Pragma:no-cache

I also have Firefox, is there a plugin or something I can use to not respect "no-cache" ? Thanks

link|improve this question

So you're trying to grab an mp3 from a site that looks like it specifically doesn't want you to do so? – Marc B Apr 25 '11 at 16:46
1  
Why isn't manually downloading the MP3 file sufficient? – Matt Ball Apr 25 '11 at 16:47
I don't have a direct link, that's why I want it to save to my disk. – Matt Apr 25 '11 at 17:10
feedback

migrated from stackoverflow.com Apr 26 '11 at 0:52

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 1 down vote accepted

Quite universal way might be to set up a local proxy (like Squid), and setting it either to remove that header, or to ignore it and cache the file for you.

link|improve this answer
I have installed Squid before.. but I couldn't figure out how to use it. But if you could tell me what to put in the config file [squid.conf?] to ignore [or maybe rewrite] the no-cache header, that would be awesome! – Matt Apr 26 '11 at 15:39
1  
update. I googled around and I found the correct command to put in /etc/squid/squid.conf: header_access Cache-Control deny all – Matt Apr 26 '11 at 16:34
feedback

Another lighter solution might be http://www.privoxy.org/

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.