Short answer: No, you cannot disable caching.

If what you are interested in, is not persisting the cache out to
disk, you can use the "incognito mode" for this purpose (will use
in-memory cache).

To actually disable caching, I would suggest using an HTTP proxy to
strip cacheability from responses. This solution has the advantage of
working for all browsers.

If you really want, you can build a hacked version of chromium that
disables caching.
You should be able to do this with just a couple lines of code.

Off the top of my head, hacking http_cache.cc in the following way
will probably do the trick:

HttpTransaction* HttpCache::CreateTransaction() {
  return network_layer_->CreateTransaction();
}

HttpCache* HttpCache::GetCache() {
  return NULL;
}

Although a more elegant solution would be to change
chrome_url_request_context.cc to set:

http_transaction_factory_ = HttpNetworkLayer::Create();

in place of the HttpCache* object it will use.

What is the use-case for "turning off" caching?

On Wed, Jan 14, 2009 at 10:48 AM, Abraxxus <[email protected]> wrote:
>
> Hi Fellas,
> Is there a way to disable cache completely? The project I am working
> on right now needs this for testing phase. any ideas?
>
> Thanks!
> -Abe
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to