We want to cache the URLs typed in/visited by the user and we are trying to do this by logging all the http GET requests. We realized that there will be multiple GET requests from the same page (both for page content and ads). However, we want to cache only the primary GET. One idea is to cluster the GET requests in time and use the first GET within every 1s time interval. But this might not work in the following cases: 1) Redirection 2) Multiple pages are being requested automatically 3) Periodic GET requests from ads while the user is on the same page.
Is there any elegant way to do this?
Thank you.