You can prove that this works by querying your resource with Firebug, or Developer Tools (depending on browser). You can also confirm that it is working by performing a query like:
curl -HAccept-Encoding:gzip -HAccept:application/json http://localhost:8080/content-coding-gzip/webresources/widget > json.gz
gzip -v -l json.gz
method crc date time compressed uncompressed ratio uncompressed_name defla 3a79ae18 Jan 20 15:25 1370 3389 60.3% json
The only issue that I have with the currently implemented version is that it does not use configurable compression level.
No comments:
Post a Comment