I used HTTP Chache Manager to Cache files which are being cached in browser. I am successful of doing it for some of the pages. Number of files being cached in Jmeter is equal to Number of files being cached by browser.
But in some cases : I found number files being cached is lesser than the files being cached by browser. Using Jmeter I found only 5 files are being cached but in real browser 12 files are getting cached.
Header for one file which is cached in Chrome but not in Jmeter
Header in Chrome Browser:
Remote Address: Request URL: Request Method:GET Status Code:304 Not Modified Request Headersview source Accept:image/webp,/;q=0.8 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-GB,en;q=0.8,it-CH;q=0.6,it;q=0.4,ar;q=0.2 Cache-Control:max-age=0 Connection:keep-alive Cookie: Host: If-Modified-Since:Thu, 16 Jan 2014 16:38:32 GMT If-None-Match:W/"1242-1389890312000" Referer: User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 Response Headersview source Cache-Control:private Connection:keep-alive Date:Wed, 11 Jun 2014 09:57:49 GMT ETag:W/"1242-1389890312000" Expires:Thu, 01 Jan 1970 00:00:00 GMT Server:
Header in JMeter:
Thread Name: Thread Group 1-2 Sample Start: 2014-06-11 15:18:56 IST Load time: 326 Latency: 326 Size in bytes: 1541 Headers size in bytes: 299 Body size in bytes: 1242 Sample Count: 1 Error Count: 0 Response code: 200 Response message: OK
Response headers: HTTP/1.1 200 OK Accept-Ranges: bytes Cache-Control: private Content-Type: image/png Date: Wed, 11 Jun 2014 09:48:53 GMT ETag: W/"1242-1389890312000" Expires: Thu, 01 Jan 1970 00:00:00 GMT Last-Modified: Thu, 16 Jan 2014 16:38:32 GMT Server: Content-Length: 1242 Connection: keep-alive
Thanks in advance