summaryrefslogtreecommitdiff
path: root/rt/t/web/helpers-http-cache-headers.t
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-07-10 16:38:28 -0700
committerMark Wells <mark@freeside.biz>2015-07-10 16:38:28 -0700
commit0ed195595b5c7ea404c8848d9d1881ada4214489 (patch)
tree6d6f3fe6e980cd123ff7a648d27fb9eb6b16ab13 /rt/t/web/helpers-http-cache-headers.t
parentaf05c3dda381122e0a45f72dbc0b4e9492f13fe7 (diff)
parentdf4a68099abfa067014f36f92874fccefdea662e (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/t/web/helpers-http-cache-headers.t')
-rw-r--r--rt/t/web/helpers-http-cache-headers.t8
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};