@@ -22,7 +22,7 @@ describe('CacheControlHandler', () => {
2222 const config = getEnvironmentConfig ( 'development' ) ;
2323
2424 const app = express ( ) ;
25- app . use ( CacheControlHandler ( 'private, max-age=1800 ' , config ) ) ;
25+ app . use ( CacheControlHandler ( 'private, max-age=900 ' , config ) ) ;
2626 app . get ( '/' , ( req , res ) => {
2727 res . status ( 200 ) . json ( { yay : true } ) ;
2828 } ) ;
@@ -36,7 +36,7 @@ describe('CacheControlHandler', () => {
3636 it ( 'sets Cache-control header for other environments' , async ( ) => {
3737 const config = getEnvironmentConfig ( 'production' ) ;
3838
39- const headerValue = 'private, max-age=1800 ' ;
39+ const headerValue = 'private, max-age=900 ' ;
4040
4141 const app = express ( ) ;
4242 app . use ( CacheControlHandler ( headerValue , config ) ) ;
@@ -53,8 +53,8 @@ describe('CacheControlHandler', () => {
5353 it ( 'the closest handler to route implementation sets Cache-control header if multiple exist' , async ( ) => {
5454 const config = getEnvironmentConfig ( 'production' ) ;
5555
56- const headerValue1 = 'private, max-age=1800 ' ;
57- const headerValue2 = 'max-age=1800 ' ;
56+ const headerValue1 = 'private, max-age=900 ' ;
57+ const headerValue2 = 'max-age=900 ' ;
5858
5959 const app = express ( ) ;
6060 app . use ( CacheControlHandler ( headerValue1 , config ) ) ;
0 commit comments