问题内容: I have implemented a Gzip Compression filter in servlet filter level. My front end jsp is making ajax call to server side to retrieve json response. In jsp client, here is the snippet of code: var _url = (xxx.contextPath + '/documenttype/getextension/'+ val); $.getJSON(_url).done(function (data) { if(data){ $('#documents').attr('accept', data); } }).fail(function( jqxhr, textStatus, error )