Commit ac84e82 1 parent f49d8f5 commit ac84e82 Copy full SHA for ac84e82
File tree 1 file changed +16
-5
lines changed
lib/utils/generateManifest
1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,15 @@ function jsToJson(config) {
228
228
}
229
229
}
230
230
231
+ if ( Object . prototype . hasOwnProperty . call ( rule , 'enableGZIP' ) ) {
232
+ if ( rule . enableGZIP ) {
233
+ cdnRule . behaviors . push ( {
234
+ name : 'enable_gzip' ,
235
+ target : '' ,
236
+ } ) ;
237
+ }
238
+ }
239
+
231
240
if ( Object . prototype . hasOwnProperty . call ( rule , 'bypassCache' ) ) {
232
241
if ( rule . bypassCache ) {
233
242
cdnRule . behaviors . push ( {
@@ -305,11 +314,13 @@ function jsToJson(config) {
305
314
} ) ;
306
315
}
307
316
308
- if ( rule . enableGZIP === true ) {
309
- cdnRule . behaviors . push ( {
310
- name : 'enable_gzip' ,
311
- target : '' ,
312
- } ) ;
317
+ if ( Object . prototype . hasOwnProperty . call ( rule , 'enableGZIP' ) ) {
318
+ if ( rule . enableGZIP ) {
319
+ cdnRule . behaviors . push ( {
320
+ name : 'enable_gzip' ,
321
+ target : '' ,
322
+ } ) ;
323
+ }
313
324
}
314
325
315
326
if ( rule . filterCookie ) {
You can’t perform that action at this time.
0 commit comments