Hi,

I've got servlet, which getting a list of URLs divided by ";" as
request and then merges them together and send back to the
client browser. As well as list could be a huge, POST method is used.

The problem is, that when a user wants to send the result of merging
using browser's "Send->Page by E-mail..." he has got a message, that it
isn't possible, because browser tries to get a content again(because
it isn't a cache), but that for browser uses GET.
As well as POST uses message body to transfer Request details,
GET fails in this case.

Question: how can I prevent the browser to revalidate the request on
a server if I'm using POST? With GET everything working properly,
cause browser does not try to revalidate request and uses
browser cache as a source for Send->Page by Email... command.

I found, that when POST uses to send request, browser appends the
following HTTP header: Cache-Control: no-cache.
But HTTP headers of the response are the same, no matter which kind of
request I use: GET or POST.

I tried:
  - request.addHeader("Cache-Control", "public") on a server side(servlet);

  -<META HTTP-EQUIV="Cache-Control" CONTENT="max-age=3600"> on a
  client side in a page where my form with POST located;

Both was not helpful.

Any ideas?

Max

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to