Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: Using a git filter to Cache HTML Resources Locally

by Anonymous Monk
on Oct 14, 2018 at 07:03 UTC ( [id://1223986]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Using a git filter to Cache HTML Resources Locally
in thread Using a git filter to Cache HTML Resources Locally

The interesting part is not the URL rewriting but the automatic download of the remote URL to a local file.

Heh

Downloading/mirroring is the boring part :)(lwp-rget/wget/curl/httrack...)

The URL rewriting is the eyebrow raising part (sourcefilter)

It wouldn't be hard to try to load both URLs from Javascript, or whatever, but why add additional complexity when you can just rewrite the file?

Um, ... Why is one additional complexity but not the other?

  • Comment on Re^5: Using a git filter to Cache HTML Resources Locally

Replies are listed 'Best First'.
Re^6: Using a git filter to Cache HTML Resources Locally
by haukex (Archbishop) on Oct 14, 2018 at 07:22 UTC
    Why is one additional complexity but not the other?

    Rewriting the HTML is optional and local, while using JavaScript is global.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1223986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-23 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found