summaryrefslogtreecommitdiffstats
path: root/net/data
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 23:54:44 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 23:54:44 +0000
commite0ef2c2a4c8b36c422bbbbad31c55fb64391c7ed (patch)
tree4b59c432da8010af81d89a89f2a1459efb45f595 /net/data
parent80c13c3171f90881fcd85624dbcc7ee9bff22fc1 (diff)
downloadchromium_src-e0ef2c2a4c8b36c422bbbbad31c55fb64391c7ed.zip
chromium_src-e0ef2c2a4c8b36c422bbbbad31c55fb64391c7ed.tar.gz
chromium_src-e0ef2c2a4c8b36c422bbbbad31c55fb64391c7ed.tar.bz2
Disable the http cache when fetching PAC scripts. Also adds an extra log statement for when response is non-200.
The cache is disabled to avoid problems when switching networks (wouldn't want to re-use cached response from old network after switching to new network). This is only a partial piece for 12293 (still needs to re-trigger auto-detect on network change). BUG=12293 Review URL: http://codereview.chromium.org/118032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17572 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data')
-rw-r--r--net/data/proxy_script_fetcher_unittest/cacheable_1hr.pac1
-rw-r--r--net/data/proxy_script_fetcher_unittest/cacheable_1hr.pac.mock-http-headers3
2 files changed, 4 insertions, 0 deletions
diff --git a/net/data/proxy_script_fetcher_unittest/cacheable_1hr.pac b/net/data/proxy_script_fetcher_unittest/cacheable_1hr.pac
new file mode 100644
index 0000000..f71b53a
--- /dev/null
+++ b/net/data/proxy_script_fetcher_unittest/cacheable_1hr.pac
@@ -0,0 +1 @@
+-cacheable_1hr.pac-
diff --git a/net/data/proxy_script_fetcher_unittest/cacheable_1hr.pac.mock-http-headers b/net/data/proxy_script_fetcher_unittest/cacheable_1hr.pac.mock-http-headers
new file mode 100644
index 0000000..5b64f73
--- /dev/null
+++ b/net/data/proxy_script_fetcher_unittest/cacheable_1hr.pac.mock-http-headers
@@ -0,0 +1,3 @@
+HTTP/1.1 200 OK
+Content-Type: application/x-javascript-config
+Cache-Control: public, max-age=3600