We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e498159 commit b30d01eCopy full SHA for b30d01e
1 file changed
src/express-http-server.js
@@ -30,6 +30,10 @@ class ExpressHTTPServer {
30
31
this.beforeMiddleware(app);
32
33
+ if (this.cache) {
34
+ app.get('/*', this.buildCacheMiddleware());
35
+ }
36
+
37
if (this.gzip) {
38
this.app.use(require('compression')());
39
}
@@ -39,10 +43,6 @@ class ExpressHTTPServer {
43
app.use(basicAuth(username, password));
40
44
41
45
42
- if (this.cache) {
- app.get('/*', this.buildCacheMiddleware());
- }
-
46
if (this.distPath) {
47
app.get('/', fastbootMiddleware);
48
app.use(express.static(this.distPath));
0 commit comments