0 Replies Latest reply on Mar 12, 2013 8:15 AM by toutounes

    Problem to setup ETags

    toutounes

      Hi,

       

      Whereas everyone one is posting to get help on disable ETags, I have troubles to use them correctly ...

       

      I developped filter/wrapper ... and the different classes to use them by miself (I create my own ETag and add it through response.setHeader("ETag", etag);) but I cn never get the ETag or the If-None-Match paramaeter in the request in the request to check if I have to send a 304 or a 200 ...

       

      Has someone any idea ???

       

      Below an example of parameters get from FireBugs :


      Response Headersview source

      Date     Tue, 12 Mar 2013 11:51:31 GMT

      Etag     "2jmj7l5rSw0yVb/vlWAYkK/YBwk="

      If-None-Match     "2jmj7l5rSw0yVb/vlWAYkK/YBwk="

      Last-Modified     Tue, 12 Mar 2013 11:50:22 GMT

      Server     Apache-Coyote/1.1

      Request Headersview source

      Accept     text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

      Accept-Encoding     gzip, deflate

      Accept-Language     en-US,en;q=0.5

      Cache-Control     max-age=0

      Connection     keep-alive

      Cookie     JSESSIONID=+s-ALszoG8zzZRwZ6hcxH9IU

      Host     127.0.0.1:8080

      If-Modified-Since     Tue, 12 Mar 2013 11:50:22 GMT

      User-Agent     Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0

      Response Headers From Cache

      Cache-Control     max-age=60,s-maxage=60

      Content-Type     text/css;charset=UTF-8

      Date     Tue, 12 Mar 2013 11:51:31 GMT

      If-Modified-Since     0

      If-None-Match     "2jmj7l5rSw0yVb/vlWAYkK/YBwk="

      Last-Modified     Tue, 12 Mar 2013 11:50:22 GMT

      Server     Apache-Coyote/1.1