The Little Guy Posted February 20, 2010 Share Posted February 20, 2010 Is there a way to check when the current file was last loaded in the browser? Link to comment https://forums.phpfreaks.com/topic/192705-cached-time/ Share on other sites More sharing options...
Mchl Posted February 20, 2010 Share Posted February 20, 2010 PHP knows nothing about browser. You could perhaps store this time in a cookie.... Link to comment https://forums.phpfreaks.com/topic/192705-cached-time/#findComment-1015207 Share on other sites More sharing options...
The Little Guy Posted February 20, 2010 Author Share Posted February 20, 2010 PHP knows nothing about browser. You could perhaps store this time in a cookie.... It knows some things, such as browser type/version and a few other things so I thought maybe I would be lucky with this... The cookie Idea is a good one, I'll give it a try! Link to comment https://forums.phpfreaks.com/topic/192705-cached-time/#findComment-1015315 Share on other sites More sharing options...
ohdang888 Posted February 21, 2010 Share Posted February 21, 2010 It knows some things, such as browser type/version and a few other things so I thought maybe I would be lucky with this... it only knows it because the browser sends this information along with the cookies to the server. browsers do not pass on info about downloaded files, so there's no direct way php could know. But ya, cookie method works Link to comment https://forums.phpfreaks.com/topic/192705-cached-time/#findComment-1015462 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.