Skip to content

Commit

Permalink
core(cache-headers): fix typo in must-revalidate (#7189)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed Feb 8, 2019
1 parent 5c0483c commit f4b9d10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class CacheHeaders extends Audit {
// Ignore assets where policy implies they should not be cached long periods
if (cacheControl &&
(
cacheControl['must-validate'] ||
cacheControl['must-revalidate'] ||
cacheControl['no-cache'] ||
cacheControl['no-store'] ||
cacheControl['private'])) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ describe('Cache headers audit', () => {

it('ignores assets where policy implies they should not be cached long periods', () => {
const networkRecords = [
networkRecord({headers: {'cache-control': 'must-validate'}}),
networkRecord({headers: {'cache-control': 'must-revalidate'}}),
networkRecord({headers: {'cache-control': 'no-cache'}}),
networkRecord({headers: {'cache-control': 'private'}}),
];
Expand Down
2 changes: 1 addition & 1 deletion types/parse-cache-control/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ declare module 'parse-cache-control' {
// Follows the potential settings of cache-control, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
interface CacheHeaders {
'max-age'?: number;
'must-validate'?: boolean;
'must-revalidate'?: boolean;
'no-cache'?: boolean;
'no-store'?: boolean;
'private'?: boolean;
Expand Down

0 comments on commit f4b9d10

Please sign in to comment.