-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serving binary files broken? #142
Comments
Looks like the same issue I'm having (issue #145). The character encoding is somehow changed to UTF-8, which explains why the file has grown in size. |
Looks like this was broken recently. If I revert my dependency to 0.8.0 this is working again for me. It's broken on 0.9.0. |
0.8.0 is not working for me (at least together with https://github.com/drewzboto/grunt-connect-proxy) This is the diff: 31fb2b2...master#diff-d0f77dfe96c2eba118cfc72926282b01 I also don't see what changed that could have caused this. |
Reverting to 0.8.0 works for me. In my case, I was having problem with loading applets. |
For me, too downgrading to 0.8.0 fixes the issue, too. |
Ok, after spending quite some time I found that the bug is in connect-livereload, and it is already known: |
It does look like it's an issue with connect-livereload, but the thread linked by @eekboom mentions a workaround in the form of adding an |
I was actually able to do it in my express config... I'm using a reasonably new angular-fullstack version for the root of the grunt set up. For whatever reason, I didn't have to do it in my Gruntfile. I'm not sure the disabling of compression is required, but I did it to as a way to make sure I could completely valid byte counts along the wire... in my
Very very frustrating issue to debug, for me, anyway, particularly because zip files were not mentioned as issues in people's comments and they change size to begin with after compression. |
@dkobozev I made a fork of grunt-contrib-connect and added an option to pass the 'ignore' option from Gruntfile to connect-livereload. It is for a latest version thought. Here it is: https://github.com/bartolomeon/grunt-contrib-connect (updated the README.md as well). |
+1 this caused consistent CONTENT_MISMATCH_ERRORs in Chrome when livereload was used in middleware along with the mounted static files. |
When using connect to serve binary files (pdf's) they show up in the browser as broken.
The content length is reported wrong too (2.5Kb of the real file vs 3.9Kb in the browser).
The text was updated successfully, but these errors were encountered: