Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 3103 invoked from network); 28 Oct 2010 14:07:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Oct 2010 14:07:22 -0000 Received: (qmail 37938 invoked by uid 500); 28 Oct 2010 14:07:21 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 37890 invoked by uid 500); 28 Oct 2010 14:07:21 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 37877 invoked by uid 99); 28 Oct 2010 14:07:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 14:07:20 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.175] (HELO mail-iw0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 14:07:14 +0000 Received: by iwn42 with SMTP id 42so1652797iwn.6 for ; Thu, 28 Oct 2010 07:06:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.30.76 with SMTP id t12mr9783769ibc.161.1288274813873; Thu, 28 Oct 2010 07:06:53 -0700 (PDT) Sender: reto@trialox.org Received: by 10.231.12.129 with HTTP; Thu, 28 Oct 2010 07:06:53 -0700 (PDT) X-Originating-IP: [217.71.247.242] In-Reply-To: References: Date: Thu, 28 Oct 2010 16:06:53 +0200 X-Google-Sender-Auth: O468h2r1IDxvxZKhouRgPhFEHqA Message-ID: Subject: Re: IE Cache problem with repeating Ajax Requests From: Reto Bachmann-Gmuer To: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0003255746cea776690493adda12 --0003255746cea776690493adda12 Content-Type: text/plain; charset=UTF-8 Hi Manuel Thanks for implementing this! I'd suggest to be a tiny bit more restrictive and not to modify the headers even when a Last-Modified or an ETag header is present. CHeers, reto On Thu, Oct 28, 2010 at 3:42 PM, Manuel Innerhofer wrote: > Hi Reto, > > in the CLEREZZA-344 in add a default cache-control header to the response > if > none is set. I was not sure what you meant with "serializer", I hope > interpreted you correctly. Please review it. > > Regards, > Manuel > > On Thu, Oct 28, 2010 at 2:39 PM, Reto Bachmann-Gmuer < > reto.bachmann@trialox.org> wrote: > > > Hi Tsuy > > > > Why do you think the headers hould only be added for IE? No Browser > should > > cache those responses. It can be done via means of jax-rs in the > individual > > root resource or typerenderer. Or maybe it should be the serializer to > add > > some reasonable (and configurable) defaults if this hasn't explicitely > been > > explicitely set by the Handler. > > > > Cheers, > > reto > > > > > > On Thu, Oct 28, 2010 at 11:20 AM, Tsuyoshi Ito > > wrote: > > > > > Hi Reto > > > > > > I have tested our apps in IE and found out that requests are cached. > > > Especially ajax requests which returns JSON or RDF/JSON lead to > > > problems because the pages are not rendered correcty. What is an easy > > > way to set the request headers "Cache-Control":"no-cache" and > > > "Expires":"0" for html, json and rdf/json for IE in apache clerezza. > > > > > > Or are there any better solution than changing header for requests with > > IE? > > > > > > Thanks > > > > > > Cheers > > > TSuy > > > > > > --0003255746cea776690493adda12--