HTTP Headers Lab - savannahc502/SavC-TechJournal-SEC260 GitHub Wiki
Browse to http://web.ics.purdue.edu/~gchopra/class/public/pages/webdesign/05_simple.html
- Click on F12 key to bring up the
Developers Window
- Click on the Network Tab
- Click on the Names on the left
- First inspect the 05_simple.html
- Click on the Headers tab on the right - you should see the Request and Response Headers
- Browser User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
- Content-type of the page: text/html
- When was the page last modified: Wed, 13 Jan 2016 09:47:41 GMT
- Content-Type: image/jpeg
- Referer: https://web.ics.purdue.edu/~gchopra/class/public/pages/webdesign/05_simple.html
- Why is the Referer is what is listed: The referrer is using the source code of the html text file to find the location of the image to load on the screen. Thus, the image is referring to the html page.
- When I reloaded the page and inspected the html header, I saw the 304 Not Modified status code (portrayed in the image above next to the green dot). This means that since my previous load of the page, the server has not altered the content. Since my browser can handle caching, my browser was able to load the data from the last time I accessed the page.
- The request header that is relevant is to the 304 response code is the If Modified Since header. My browser had a cache for the time listed in that header. Since the sever knows that the page has not been modified since that date, it can let my browser know that loading the last instance cached of the webpage would be accurate.