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

image

  • 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

image


image

  • 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.

image

  • 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.