This is our old Q&A Site. Please post any new questions and answers at

Is way to know when a webpage is refreshed based on the information in a packet? I ran Wireshark for different websites, and refreshed them when the capturing was in progress. I couldn't find a concrete pattern as to which packet in particular indicates that the page has been refreshed.

asked 14 Feb '12, 11:51

Rhiya's gravatar image

accept rate: 0%

edited 14 Feb '12, 12:10

multipleinterfaces's gravatar image


There is no guarantee that refreshing a webpage in your browser will actually generate a new request to the server since modern browsers aggressively cache content from servers. Detecting this condition will be dependent upon the specific browser being used and the specific contents of the page being viewed.
If your page is mostly quiet once it is loaded, you can look for another HTTP GET (possibly preceded by a TCP handshake). Most modern browsers allow you to refresh a page without looking at the local cache, so you should make sure you are doing that when attempting this (e.g. in Firefox on Windows, CTRL+F5 is the default shortcut for this).

permanent link

answered 14 Feb '12, 12:07

multipleinterfaces's gravatar image

accept rate: 12%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Feb '12, 11:51

question was seen: 5,778 times

last updated: 14 Feb '12, 12:10

p​o​w​e​r​e​d by O​S​Q​A