-----Original Message----- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, July 07, 2017 1:05 PM To: Tomcat Users List <users@tomcat.apache.org> Subject: Re: Issue with static file in Tomcat 8.5.17
On 07/07/2017 19:09, George Stanchev wrote: > Hi, ...<SNIP>... > Please let me know if I need to open a BZ issue to track this. I have a test > app but really it is very simple - an app with empty web descriptor and that > version of minimized jQuery JS in a folder. <quote> The most likely suspect is this fix: 49464: Improve the Default Servlet's handling of static files when the file encoding is not compatible with the required response encoding. (markt) What is your system's default file encoding (or if you have done so, what is explicitly configured for the DefaultServlet?). The full response headers would also be helpful. Thanks, Mark </quote> We run with -Dfile.encoding=UTF-8. Here is more verbose response [1]. It takes ~20secs for the first request to time out. [1] c:\>wget -S http://host:8085/testapp/javascript/jquery-1.8.3.min.js SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\bin\gnuwin32/etc/wgetrc --2017-07-07 13:08:48-- http://host:8085/testapp/javascript/jquery-1.8.3.min.js Resolving... hostnames ... Connecting to host:8085... connected. HTTP request sent, awaiting response... HTTP/1.1 200 X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Accept-Ranges: bytes ETag: W/"93640-1496825994000" Last-Modified: Wed, 07 Jun 2017 08:59:54 GMT Content-Type: application/javascript Content-Length: 93640 Date: Fri, 07 Jul 2017 19:08:48 GMT Connection: keep-alive Length: 93640 (91K) [application/javascript] Saving to: `jquery-1.8.3.min.js.2' 99% [=========================================================================================================================================================================================================================> ] 93,638 86.5K/s in 20s 2017-07-07 13:09:08 (4.57 KB/s) - Connection closed at byte 93638. Retrying. --2017-07-07 13:09:09-- (try: 2) http://host/testapp/javascript/jquery-1.8.3.min.js Connecting to host:8085... connected. HTTP request sent, awaiting response... HTTP/1.1 206 X-Frame-Options: DENY X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Accept-Ranges: bytes ETag: W/"93640-1496825994000" Last-Modified: Wed, 07 Jun 2017 08:59:54 GMT Content-Range: bytes 93638-93639/93640 Content-Type: application/javascript Content-Length: 2 Date: Fri, 07 Jul 2017 19:09:09 GMT Connection: keep-alive Length: 93640 (91K), 2 remaining [application/javascript] Saving to: `jquery-1.8.3.min.js.2' 100%[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>] 93,640 --.-K/s in 0s 2017-07-07 13:09:09 (69.2 KB/s) - `jquery-1.8.3.min.js.2' saved [93640/93640]