https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22262

            Bug ID: 22262
           Summary: text/javascript responses should be compressed by
                    Apache
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Web services
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

Neither the vanilla Apache configuration nor the Debian one includes
text/javascript in the list of MIME types of responses that get compressed by
mod_deflate. Since some APIs under /svc/ happen to use that MIME type in their
responses, a bit of bandwidth can be unnecessarily wasted.

However, the lack of compression is of more import for
svc/cataloguing/framework, which transfers a megabyte or so whenever it is
invoked to fetch the default MARC21 framework (and presumably a similar amount
of data for other MARC frameworks). Since that API is invoked when Rancor
initializes, it's been observed that over a slow connection a RequireJS
"define" call can time out, leading to the MARC editor never fully initializing
and an error like this appearing in the browser debug console:

"error" load timeout for modules:
/cgi-bin/koha/svc/cataloguing/framework?frameworkcode=&callback=define"
onscripterror https://HOST/intranet-tmp1/lib/require_18.0504000.js

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to