Side navigation
#4736 closed bug (wontfix)
Opened June 08, 2009 03:05PM UTC
Closed October 08, 2009 05:36AM UTC
Minified jquery.js file gets truncated when served through Apache reverse proxy
Reported by: | DougWebb | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3.2 |
Component: | build | Version: | 1.3.2 |
Keywords: | Minified proxy truncated | Cc: | |
Blocked by: | Blocking: |
Description
I've discovered that the jquery-1.3.2.min.js file gets truncated when served through an Apache reverse proxy setup, most likely because of a lack of newlines, particularly at the end of the file.
My Apache reverse proxy setup looks like this:
<Location /app> RequestHeader set X-PROXYPATH /app ProxyPass http://internal.domain ProxyPassReverse http://internal.domain </Location>
When I access http://internal.domain/jquery-1.3.2.min.js I get the entire file, but when I access http://external.domain/app/jquery-1.3.2.min.js the file is truncated around the Sizzle CSS comment.
The request header doesn't impact the way the jquery.js file is served, but it's necessary for my application, and is the reason for using a Location block instead of the more common two-argument form of the ProxyPass settings.
Attached is jquery.test.js, which is jquery-1.3.2.min.js with a newline after almost every ; character. (I had to remove the newlines from ; that appear within strings.) This file does NOT get truncated when served through an Apache reverse proxy.
Attachments (1)
Change History (2)
Changed August 09, 2009 02:06AM UTC by comment:1
component: | unfilled → build |
---|