Configuration GZip at Wildfly

前端 未结 3 2149
温柔的废话
温柔的废话 2021-02-07 15:08

I\'m with a problem to configure the GZip in my Wildfly server used the following configuration on the server:



        
3条回答
  •  梦如初夏
    2021-02-07 15:55

    It worked with the predicate:

    predicate="exists['%{o,Content-Type}'] and regex[pattern='(?:application/javascript|text/css|text/html|text/xml|application/json)(;.*)?', value=%{o,Content-Type}, full-match=true]"
    

提交回复
热议问题