Skip to content

Commit

Permalink
we are checking the freshness of the request
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 8, 2014
1 parent 01d9592 commit aa3b11d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Plugin/DefaultHelpers.pm
Expand Up @@ -281,7 +281,7 @@ Alias for C<Mojolicious::Controller/"render_to_string">.
my $bool = $c->is_fresh(etag => 'abc');
my $bool = $c->is_fresh(last_modified => $epoch);
Check freshness of response by comparing the C<If-None-Match> and
Check freshness of request by comparing the C<If-None-Match> and
C<If-Modified-Since> request headers to the C<ETag> and C<Last-Modified>
response headers with L<Mojolicious::Static/"is_fresh">.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -212,7 +212,7 @@ protect from traversing to parent directories.
my $bool = $static->is_fresh(Mojolicious::Controller->new, {etag => 'abc'});
Check freshness of response by comparing the C<If-None-Match> and
Check freshness of request by comparing the C<If-None-Match> and
C<If-Modified-Since> request headers to the C<ETag> and C<Last-Modified>
response headers.
Expand Down

0 comments on commit aa3b11d

Please sign in to comment.