X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fhelpers-http-cache-headers.t;h=1020832ca95df5e651c4688963c05aa188b8d473;hb=681a340f6be4184b1472a8e1fa9cd5d074f6f325;hp=1731e9d170bccecccf467a5f98938b1f74b7fc73;hpb=4e7efe58f1a20dfc4fd306fad2c14c8040585be1;p=freeside.git diff --git a/rt/t/web/helpers-http-cache-headers.t b/rt/t/web/helpers-http-cache-headers.t index 1731e9d17..1020832ca 100644 --- a/rt/t/web/helpers-http-cache-headers.t +++ b/rt/t/web/helpers-http-cache-headers.t @@ -23,10 +23,14 @@ ok $m->login, 'logged in'; my $docroot = join '/', qw(share html); # find endpoints to loop over -my @endpoints = ('/NoAuth/css/print.css'); +my @endpoints = ( + "/NoAuth/css/aileron/squished-".("0"x32).".css", + '/static/images/bpslogo.png', +); find({ wanted => sub { if ( -f $_ && $_ !~ m|autohandler$| ) { + return if m{/\.[^/]+\.sw[op]$}; # vim swap files ( my $endpoint = $_ ) =~ s|^$docroot||; push @endpoints, $endpoint; } @@ -76,7 +80,7 @@ foreach my $endpoint ( @endpoints ) { my $header_key = 'default'; if ( $endpoint =~ m|Autocomplete| ) { $header_key = 'Autocomplete'; - } elsif ( $endpoint =~ m|NoAuth| ) { + } elsif ( $endpoint =~ m/NoAuth|static/ ) { $header_key = 'NoAuth'; } my $headers = $expected->{$header_key};