Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    zipped javascript files don't work

    Our webapp works fine if there are no *.js.gz files in isomorphic/system/modules directory.

    When I put the *.gz files there, the webserver serves the zipped files, but the browser (both IE7 and Firefox) don't seem to be able to understand. (I think the browsers decompress the files but get errors when using them).

    Any suggestions are appreciated (using unzipped files is a big performance problem)

    #2
    We recommend allowing the SmartClient Server to serve everything under isomorphic/ except the media files (.gif, .png etc) in the skins folder. It's possible, but extremely complex to setup Apache or other webservers to reliably deliver compressed JS.

    Comment


      #3
      I am using SmartCLient Server

      I believe I am using the SmartClient Server (at least the FileDownload servlet). I get errors when the *.gz files are downloaded. When I delete the *.gz files from the server, the application works fine.

      Comment


        #4
        I found the problem

        The webapp was using compression filter on js files . The gzip files were being compressed again. Works fine when I removed the filter for *.js.

        Thanks

        Comment


          #5
          What compression filter were you using? The SmartClient one can definitely detect upstream compression and pass the stream through...

          Comment

          Working...
          X