function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AndrewTaylorAndrewTaylor 

Javascript Remoting - Add "Accept-Encoding" to header

How would I add an "Accept-Encoding" header to Javascript Remoting so I can gzip the response?
Ashish_SFDCAshish_SFDC
Hi AJ, 


See the example with the code below, 

HTTP/1.1 200 OK
Date: Tue, 02 Oct 2012 06:06:22 GMT
Content-Type: application/javascript;charset=UTF-8
Vary: Accept-Encoding

https://github.com/ralscha/extdirectspring/wiki/Api


Regards,
Ashish