On Sat, 7 Jun 2003 21:38:42 -0400, Roger Turk wrote:

> Glenn,

> It appears cache and cache.idx should have gone one step further than it has.

> In the cache.idx example that you posted on your site,
> "http://www.arachne.cz"; is the page source and is saved in the cache as:
> "\arachne\cache\55027588.HTM".

> Now, as you go thru cache.idx, everyplace you find, "http://www.navrcholu...";
> in 55027588.HTM, if you replace it with the filename shown in the index, that
> image will appear when the page is viewed offline.

> If you do a "search and replace", searching for the "http://..."; name and
> replacing it with the alias cache name, no LFN's will be involved and the
> page would contain all of the graphics and links that it would have online.

> I hope that I am explaining this clearly enough.

Ahhhh..... 'twould be nice if 'twere that easy. ;-)

However,

Most web pages use a combination of both "static" and "dynamic"
addresses for images. (and for links to other pages)

(static)
<img src="http://www.cisnet.com/glennmcc/images/cacheidx.gif";>

(dynamic)
<img src="images/cacheidx.gif">

When the dynamic address is contained within a page located
at http://www.cisnet.com/glennmcc/

Then the 'completed address' becomes the same as if we had used the
static address.

The reason for doing this is for 'portability'.

The exact same page can be placed at many different
sites without editing to change a link to a (now local) file.

So.....
Doing a 'search and replace' of "http://.."; will not 'cut the mustard'.


-- 
 Glenn
 http://arachne.cz/
 http://www.delorie.com/listserv/mime/
 http://www.cisnet.com/glennmcc/
 http://www.cisnet.com/glennmcc/aqc/

Reply via email to