website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
19 lines • 763 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CacheInsightRule = void 0;
const lighthouse_helper_1 = require("../../../linters/lighthouse.helper");
class CacheInsightRule {
constructor(dom, lightHouse) {
this.id = 'cache-insight';
this.tags = ['performance'];
this.description = 'A long cache lifetime can speed up repeat visits to your page.';
this.ruleUrl = 'https://web.dev/uses-long-cache-ttl/';
this.dom = dom;
this.lightHouse = lightHouse;
}
check() {
return lighthouse_helper_1.LighthouseHelper.identifyRule(this.id, this.ruleFlow, this.lightHouse);
}
}
exports.CacheInsightRule = CacheInsightRule;
//# sourceMappingURL=cache-insight.rule.js.map