@webqit/webflo 0.8.75 → 0.8.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -459,6 +459,13 @@ export async function run(hostSetup, request, response, Ui, flags = {}, protocol
|
|
|
459
459
|
}
|
|
460
460
|
});
|
|
461
461
|
|
|
462
|
+
// -------------------
|
|
463
|
+
// Important no-caching for non-"get" requests
|
|
464
|
+
// -------------------
|
|
465
|
+
if (httpMethodName !== 'get' && !response.getHeader('Cache-Control')) {
|
|
466
|
+
response.setHeader('Cache-Control', 'no-store');
|
|
467
|
+
}
|
|
468
|
+
|
|
462
469
|
// -------------------
|
|
463
470
|
// Send
|
|
464
471
|
// -------------------
|