/[pdpsoft]/nl.nikhef.pdp.fetchcrl/trunk/TrustAnchor.pm
ViewVC logotype

Diff of /nl.nikhef.pdp.fetchcrl/trunk/TrustAnchor.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2802 by davidg, Thu Apr 30 10:44:41 2015 UTC revision 2803 by davidg, Tue Nov 10 15:46:54 2015 UTC
# Line 433  sub retrieveHTTP($$) { Line 433  sub retrieveHTTP($$) {
433        $ua->proxy("http", $self->{"http_proxy"});        $ua->proxy("http", $self->{"http_proxy"});
434      }      }
435    }    }
436      # set request cache control if specified as valid in config
437      if ( defined $cnf->{_}->{cache_control_request} ) {
438        if ( $cnf->{_}->{cache_control_request} =~ /^\d+$/ ) {
439          $ua->default_header('Cache-control' =>
440                              "max-age=".$cnf->{_}->{cache_control_request} );
441        } else {
442          die "Request cache control is invalid (not a number)\n";
443        }
444      }
445    
446    # see with a HEAD request if we can get by with old data    # see with a HEAD request if we can get by with old data
447    # but to assess that we need Last-Modified from the previous request    # but to assess that we need Last-Modified from the previous request

Legend:
Removed from v.2802  
changed lines
  Added in v.2803

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28