Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: [OT] HTTP downloads and caching

by syphilis (Archbishop)
on Jun 11, 2017 at 02:26 UTC ( [id://1192506]=note: print w/replies, xml ) Need Help??


in reply to Re^3: [OT] HTTP downloads and caching
in thread [OT] HTTP downloads and caching

Also, it sounds like this server is under your control

I don't think it is - though I could be wrong.
If it is under my control then I'd have to do a bit of research and learning before I could exercise that control.

Back in March I opened a ticket with the company that hosts my website and asked them to mark "all files in (and below) the sisyphusion.tk/ppm directory" as "no-cache".
They replied "Your request has been accomplished".
Of course they don't provide any info regarding exactly what they've done (they never do), but whatever it was didn't make any difference.
Reading various comments/docs about this "no-cache" option I see a lot of "should-do-this" statements and not many "will-do-this" ones.

I think the best solution would be to hack PPM to send a "no-cache" argument. Make that the default behaviour, with an option to allow caching via a command line argument.
PPM itself uses perl's LWP modules:
C:\>perl -MPPM -le "for(keys(%INC)){print if $_ =~ /LWP/}" LWP/UserAgent.pm LWP/MemberMixin.pm LWP/Simple.pm LWP.pm LWP/Protocol.pm
So, assuming LWP already allows for the passing of the "--no-cache" directive, such a hack might not be too difficult.
In the meantime, running wget --spider --no-cache http://.... is tolerable, if not exactly satisfactory.

Thank you for your reply and link !

Cheers,
Rob

Log In?
Username:
Password:

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

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

    No recent polls found