This is my doGet:

        @Override
        protected void doGet(final HttpServletRequest request, final
HttpServletResponse response) throws ServletException,
                        IOException {

                final long now = System.currentTimeMillis();
                response.setDateHeader(Constants.HEADER_EXPIRE, now +
Constants.DEFAULT_EXPIRE_MILISECONDS);
                response.setHeader(Constants.HEADER_CACHE_CONTROL, (new
StringBuilder(Constants.HEADER_PUBLIC).append(Constants.DEFAULT_EXPIRE_SECONDS)).toString());

                response.setCharacterEncoding(Constants.ENCODING);
                response.setContentType(Constants.TEXT_CONTENT_TYPE);

                // something not important..

        }


On Mar 1, 9:32 am, Peter Ondruska <[email protected]> wrote:
> Could you provide some code please?
>
> On Mar 1, 9:06 am, George  Moschovitis <[email protected]>
> wrote:
>
>
>
> > > I do use Expires header as well and it works as expected. For statis
> > > resources you define explicit expiration using appengine-web.xml.
>
> > It did work as expected.
> > Now the Expires header is added automatically to *dynamic* request,
> > even for request that don't require it.
>
> > -g.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to