Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Extra bytes appended to js-files when using mod_deflate |
|
Author |
|
tuukka
Joined: 08 Jan 2015 Posts: 4
|
Posted: Tue 13 Sep '16 15:12 Post subject: Extra bytes appended to js-files when using mod_deflate |
|
|
Dear collective wisdom,
we use httpd in from of Tomcat (using ajp). We changed changed charset to UTF-8 in JavaScript files and now httpd appends a few random bytes to the files (usually null bytes). This causes the JavaScript files to be unusable. The culprit seems to be mod_deflate because (1) the files are ok, (2) Tomcat serves js-files just fine and (3) if mod_deflate is disabled httpd serves js-files fine as well. Headers show Content-Type as "text/javascript;charset=UTF-8" in both httpd and Tomcat. Any idea how to debug?
Tuukka |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 19 Sep '16 14:44 Post subject: |
|
|
How did you configure mod_deflate?
How do you add the utf-8 header for the js files? |
|
Back to top |
|
|
|
|
|
|