/[pdpsoft]/nl.nikhef.pdp.fetchcrl/tags/fetch-crl-3.0.18/TrustAnchor.pm
ViewVC logotype

Diff of /nl.nikhef.pdp.fetchcrl/tags/fetch-crl-3.0.18/TrustAnchor.pm

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

revision 2803 by davidg, Tue Nov 10 15:46:54 2015 UTC revision 2805 by davidg, Tue Nov 10 16:07:33 2015 UTC
# Line 434  sub retrieveHTTP($$) { Line 434  sub retrieveHTTP($$) {
434      }      }
435    }    }
436    # set request cache control if specified as valid in config    # set request cache control if specified as valid in config
437    if ( defined $cnf->{_}->{cache_control_request} ) {    if ( defined $::cnf->{_}->{cache_control_request} ) {
438      if ( $cnf->{_}->{cache_control_request} =~ /^\d+$/ ) {      $::log->verb(5,"Setting request cache-control to ".
439                       $::cnf->{_}->{cache_control_request});
440        if ( $::cnf->{_}->{cache_control_request} =~ /^\d+$/ ) {
441        $ua->default_header('Cache-control' =>        $ua->default_header('Cache-control' =>
442                            "max-age=".$cnf->{_}->{cache_control_request} );                            "max-age=".$::cnf->{_}->{cache_control_request} );
443      } else {      } else {
444        die "Request cache control is invalid (not a number)\n";        die "Request cache control is invalid (not a number)\n";
445      }      }

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

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