This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How can I identify the instant at which a webage is refreshed?

0

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

Rhiya
0335
accept rate: 0%

edited 14 Feb '12, 12:10

multipleinterfaces's gravatar image

multipleinte...
1.3k152340


One Answer:

2

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

answered 14 Feb '12, 12:07

multipleinterfaces's gravatar image

multipleinte...
1.3k152340
accept rate: 12%