This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes setHeader() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "setHeader()" Watch "setHeader()" New topic
Author

setHeader()

Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Hi, I have a few questions about setHeader(). What is the difference between response.setHeader("Content-Encoding", "gzip") and response.setHeader("Content-Encoding", "x-gzip")?
What does response.setHeader("Vary", "Accept-Encoding) do?
Thanks.
 
GeeCON Prague 2014
 
subject: setHeader()