File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ gulp.task('test', function() {
29
29
// Override RATE LIMIT HERE FOR UNIT TEST
30
30
process . env . RATE_LIMIT = 10 ;
31
31
process . env . SECURE_MODE = true ;
32
+ process . env . NO_CACHE = 'no' ;
32
33
gulp . src ( './test' , { read : false } )
33
34
// `gulp-mocha` needs filepaths so you can't have any plugins before it
34
35
. pipe ( mocha ( { reporter : 'spec' } ) ) ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ module.exports = function(data, cache){
41
41
log . info ( 'Sending ok response: ' , data ) ;
42
42
if ( data ) {
43
43
// Only cache GET calls
44
- if ( req . method === 'GET' ) {
44
+ if ( req . method === 'GET' && config . noFrontendCaching !== 'yes' ) {
45
45
46
46
// If this is a cached response, show response else cache the response and show response.
47
47
if ( cache ) {
You can’t perform that action at this time.
0 commit comments