pre load URL

They have: 9 posts

Joined: Feb 2000

I'm new to Perl, so the answer may be obvious.

I'd like to pre load an html document, that is, cache it, so that the document code is already on the client (site visitor's machine) when the visitor follows the href link. Ideas?

They have: 9 posts

Joined: Feb 2000

Quote: Originally posted by fluffer:
[B]I'm pretty sure that you can't actually reload html files with JavaScript, but you could easily dynamically generate a new page on the fly. Try the following code:

Yes, that is the conclusion I have come to. Although I am by no means a JS programmer, I don't think you can write files to the client.

I was thinking, though of a perl script possibility: Would LWP::UserAgent; $ua->mirror() be something that might help along those lines?

Jake Bottero

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.