Skip Menu |

This queue is for tickets about the LWP-UserAgent-WithCache CPAN distribution.

Report information
The Basics
Id: 16374
Status: resolved
Priority: 0/
Queue: LWP-UserAgent-WithCache

People
Owner: SEKIMURA [...] cpan.org
Requestors: keith [...] sxip.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.03
Fixed in: (no value)



Subject: UserAgent should not cache HEAD requests
here's an example. it would be nice if this UA did not cache HEAD requests, because they have no content, and if you call a GET request on the same URI, it contains no content. use LWP::UserAgent::WithCache; use HTTP::Request::Common qw/GET HEAD/; my $ua = LWP::UserAgent::WithCache; $ua->request(HEAD "http://perl.org"); my $res = $ua->request(GET "http://perl.org"); die "no content" unless $res->content;
I see. I made a change to fallback a original LWP::UserAgent if a request is not 'GET'. thanks,