Wednesday 5 October 2011

Caching requests with status 301 in the browser

Recently I had to fix a bug found in the web application. I tried to repeat scenario in which the application reacted incorrectly. Unfortunately, in the logs I couldn't find some request from the browser. I used Mozilla Firefox with the Data Tamper plug-in, so I saw all requests made by the browser. I thought that Apache web server could cache it after I had found that application server doesn't do it. But it did not. In the end I found that Firefox cached it. Finally, in the Firefox plug-in Web Developer I switched off the cache. So I have found for the first time that a browser caches requests with response status 301.

No comments: