File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ export const addTempleAdsRedirection = (
1212 const { extVersion : rawExtVersion , isMisesBrowser : rawIsMisesBrowser } = req . query ;
1313 const extVersion = typeof rawExtVersion === 'string' ? rawExtVersion : '0.0.0' ;
1414 const isMisesBrowser = rawIsMisesBrowser === 'true' ;
15- res . redirect (
16- `${ EnvVars . TEMPLE_ADS_API_URL } /v1/api/ads-rules/${ extVersion } ${ templeAdsPathMainPart } ${
17- isMisesVariable ? ( isMisesBrowser ? '/mises' : '/no-mises' ) : ''
18- } `
19- ) ;
15+ res
16+ . header ( 'Cache-Control' , 'public, max-age=300' )
17+ . redirect (
18+ `${ EnvVars . TEMPLE_ADS_API_URL } /v1/api/ads-rules/${ extVersion } ${ templeAdsPathMainPart } ${
19+ isMisesVariable ? ( isMisesBrowser ? '/mises' : '/no-mises' ) : ''
20+ } `
21+ ) ;
2022 } ) ;
2123} ;
You can’t perform that action at this time.
0 commit comments