ICEfaces
  1. ICEfaces
  2. ICE-9218

Resource Coalescing appears to depend on browser caching when refreshing a page

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      n/a

      Description

      If you turn on Resource Coalescing and refresh the page, the ResourceCoalescingHandler appears to detect that there's been no change to the resources and will return an empty response for the CSS and Javascript. If the browser is caching the resource, which will have the same dgt param, then the resource will be fetched from the cache, but if the browser is not caching the resource, CSS and Javascript will be missing.

        Activity

        Hide
        Philip Breau added a comment -

        Testing Chrome with cache disabled, the browser is sending a no-cache header that the CoalescingResourceHandler could check. If the cache-control header is no-cache, then the handler should increment the digest parameter and resend all of the coalesced resources:

        Request URL:http://icefaces-showcase.icesoft.org/javax.faces.resource/coalesced.css.jsf?ln=ice.core&dgst=fqtd4x
        Request Method:GET
        Status Code:304 Not Modified
        Request Headersview source
        Accept:text/css,/;q=0.1
        Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
        Accept-Encoding:gzip,deflate,sdch
        Accept-Language:en-US,en;q=0.8
        Cache-Control:no-cache
        Connection:keep-alive
        Cookie:__qca=P0-935737392-1349099843320; ice.push.browser=22chfy22vh9; __unam=a3382e8-13cabe7688d-5df71298-706; __utma=148148143.223726457.1350350249.1366896778.1366901926.354; __utmc=148148143; __utmz=148148143.1366731604.345.13.utmcsr=email.icesoft.com|utmccn=(referral)|utmcmd=referral|utmcct=/track; JSESSIONID=FF9C89088AECD8648955AFD839A25CE8; ice.connection.contextpath=.; __utma=10579628.1010329608.1337786920.1366901855.1366907114.66; __utmb=10579628.1.10.1366907114; __utmc=10579628; __utmz=10579628.1366907114.66.37.utmcsr=component-showcase.icesoft.org|utmccn=(referral)|utmcmd=referral|utmcct=/component-showcase/; _mkto_trk=id:197-WYM-268&token:_mch-icesoft.org-1350350248661-41916; ice.connection.lease=1366907133111
        Host:icefaces-showcase.icesoft.org
        Pragma:no-cache
        Referer:http://icefaces-showcase.icesoft.org/showcase.jsf
        User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
        Query String Parametersview sourceview URL encoded
        ln:ice.core
        dgst:fqtd4x
        Response Headersview source
        Connection:Keep-Alive
        Date:Thu, 25 Apr 2013 16:25:47 GMT
        Keep-Alive:timeout=5, max=100
        Server:Apache-Coyote/1.1
        Vary:Accept-Encoding

        Show
        Philip Breau added a comment - Testing Chrome with cache disabled, the browser is sending a no-cache header that the CoalescingResourceHandler could check. If the cache-control header is no-cache, then the handler should increment the digest parameter and resend all of the coalesced resources: Request URL: http://icefaces-showcase.icesoft.org/javax.faces.resource/coalesced.css.jsf?ln=ice.core&dgst=fqtd4x Request Method:GET Status Code:304 Not Modified Request Headersview source Accept:text/css, / ;q=0.1 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-US,en;q=0.8 Cache-Control:no-cache Connection:keep-alive Cookie:__qca=P0-935737392-1349099843320; ice.push.browser=22chfy22vh9; __unam=a3382e8-13cabe7688d-5df71298-706; __utma=148148143.223726457.1350350249.1366896778.1366901926.354; __utmc=148148143; __utmz=148148143.1366731604.345.13.utmcsr=email.icesoft.com|utmccn=(referral)|utmcmd=referral|utmcct=/track; JSESSIONID=FF9C89088AECD8648955AFD839A25CE8; ice.connection.contextpath=.; __utma=10579628.1010329608.1337786920.1366901855.1366907114.66; __utmb=10579628.1.10.1366907114; __utmc=10579628; __utmz=10579628.1366907114.66.37.utmcsr=component-showcase.icesoft.org|utmccn=(referral)|utmcmd=referral|utmcct=/component-showcase/; _mkto_trk=id:197-WYM-268&token:_mch-icesoft.org-1350350248661-41916; ice.connection.lease=1366907133111 Host:icefaces-showcase.icesoft.org Pragma:no-cache Referer: http://icefaces-showcase.icesoft.org/showcase.jsf User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31 Query String Parametersview sourceview URL encoded ln:ice.core dgst:fqtd4x Response Headersview source Connection:Keep-Alive Date:Thu, 25 Apr 2013 16:25:47 GMT Keep-Alive:timeout=5, max=100 Server:Apache-Coyote/1.1 Vary:Accept-Encoding

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: