OptiCache
Express middleware to statically cache renders as HTML in your public folder, optimized through critical and html-minifier.
Installation and Usage
npm i opticache --save
const express = ;const opticache = ; const app = ; // Add Express static folderapp;// Add Opticache to all routes (can be added individually too)app;
Options
public
- The public folder that Express serves as a staticminify
- html-minifer configuration options