UI Performance Plugin
  1. UI Performance Plugin
  2. GPUIPERFORMANCE-10

Problems with serving compressed resources with tomcat.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Grails-UI-Performance 1.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      tomcat 6.0.18

      Activity

      Hide
      Marcin Muras added a comment -

      I found what exactly makes problem.
      If you have configuration like that <Host name="test.com" appBase="webapps" .. where appBase is exactly webapps everything works fine.
      But when you change appBase to something else e.g. appBase="webapps/someApp" (it must be different from webapps) cacheFilter is not called
      when css and js is served by tomcat.
      It is realy strange and I it looks like bug in tomcat (or maybe my knowledge about tomcat is not sufficient ..).

      My workaround for this bug was to change configuration for something like this:
      <Host name="app1.com" appBase="webapps".. >
      <Context path="" docBase="Absolute path to app1. App1 must be outside webapps dir !"/>
      </Host>
      <Host name="app2.com" appBase="webapps".. >
      <Context path="" docBase="Absolute path to app2. App2 must be outside webapps dir !"/>
      </Host>
      In such configuration everything works fine. Filter is called as it should.

      Show
      Marcin Muras added a comment - I found what exactly makes problem. If you have configuration like that <Host name="test.com" appBase="webapps" .. where appBase is exactly webapps everything works fine. But when you change appBase to something else e.g. appBase="webapps/someApp" (it must be different from webapps) cacheFilter is not called when css and js is served by tomcat. It is realy strange and I it looks like bug in tomcat (or maybe my knowledge about tomcat is not sufficient ..). My workaround for this bug was to change configuration for something like this: <Host name="app1.com" appBase="webapps".. > <Context path="" docBase="Absolute path to app1. App1 must be outside webapps dir !"/> </Host> <Host name="app2.com" appBase="webapps".. > <Context path="" docBase="Absolute path to app2. App2 must be outside webapps dir !"/> </Host> In such configuration everything works fine. Filter is called as it should.

        People

        • Assignee:
          Burt Beckwith
          Reporter:
          Marcin Muras
        • Votes:
          1 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated: