function GetUrlLocalCachePath(const Url: string): string; var dwSize: DWORD; PCache: PInternetCacheEntryInfo; begin dwSize := 0; if not GetUrlCacheEntryInfo(PChar(Url), PCache^, dwSize) then begin if GetLastError <> ERROR_INSUFFICIENT_BUFFER then Exit; end; GetMem(PCache, dwSize); try if GetUrlCacheEntryInfo(PChar(Url), PCache^, dwSize) then begin Result := PCache^.lpszLocalFileName; end; finally FreeMem(PCache, dwSize); end; end;如果Url在IE缓存中存在则返回其对应的目录. FireFox有自己的一套机制,上面的方法不适用
var
dwSize: DWORD;
PCache: PInternetCacheEntryInfo;
begin
dwSize := 0;
if not GetUrlCacheEntryInfo(PChar(Url), PCache^, dwSize) then
begin
if GetLastError <> ERROR_INSUFFICIENT_BUFFER then
Exit;
end; GetMem(PCache, dwSize);
try
if GetUrlCacheEntryInfo(PChar(Url), PCache^, dwSize) then
begin
Result := PCache^.lpszLocalFileName;
end;
finally
FreeMem(PCache, dwSize);
end;
end;如果Url在IE缓存中存在则返回其对应的目录.
FireFox有自己的一套机制,上面的方法不适用
这个方法可以获得html的文件地址,那么图片以及脚本的文件在什么位置?