Looking for the ultimate HTTP fetch function
#76
i just updated cachedhttp to v1.3. i fixed a critical bug in cleancache() ...


Quote:what i noticed as well, once i use a use dynamic urls e.g. bla.php?nav=44232, these are stored, but when recalled, the file is actually being retrieved/cached again. in the cache you will only see the filename increase with a number e.g. bla[6] or something similar. is this correct ?

it will only use the cached version if the server returns a status=304. most servers will not return a 304 with for scripted pages (e.g. php) -especially if it contains a "?" ... so it is probably correct that cachedhttp retrieves the file again.

however, if the url you request is exactly the same  (e.g. "[url]http://www.example.com/bla.php?nav=44232"[/url]) and the server does not return a 304, then it is a sign that the cached version is expired. i.e. cachedhttp should delete the old cache file and make a new one. the filename of the new file in the cache will not necessarily be the same as the old filename. so, based on your description, i think that it works as it should.
Reply

Logout Mark Read Team Forum Stats Members Help
Looking for the ultimate HTTP fetch function0