diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-07-09 22:32:26 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-09 22:32:26 -0700 |
commit | 026dc7ad72ba972f230b6709e31fa64397d75ad4 (patch) | |
tree | c5af1a7ac9154744afc3660e9a9405892f2bb50b /rt/t/web/helpers-http-cache-headers.t | |
parent | 07b4bc84d1078f7390221d766cdb3142513db4b0 (diff) | |
parent | 1c538bfabc2cd31f27067505f0c3d1a46cba6ef0 (diff) |
merge RT 4.2.11 and Header changes to disable RT javascript, RT#34237
Diffstat (limited to 'rt/t/web/helpers-http-cache-headers.t')
-rw-r--r-- | rt/t/web/helpers-http-cache-headers.t | 8 |
1 files changed, 6 insertions, 2 deletions
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}; |