{"id":1434,"date":"2017-10-28T13:43:00","date_gmt":"2017-10-28T11:43:00","guid":{"rendered":"https:\/\/www.speich.net\/articles\/?p=1434"},"modified":"2019-10-06T09:51:47","modified_gmt":"2019-10-06T07:51:47","slug":"apache-serves-cached-files-with-garbled-text-at-end","status":"publish","type":"post","link":"https:\/\/www.speich.net\/articles\/en\/2017\/10\/28\/apache-serves-cached-files-with-garbled-text-at-end\/","title":{"rendered":"Apache serves cached files with garbled text at end"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When using Apache running on a VirtualBox machine with a shared folder, small files such as JavaScript or CSS files might not get updated from the host and served with additional characters at the end. This happens because of a <a href=\"https:\/\/www.virtualbox.org\/ticket\/12597\" target=\"_blank\" rel=\"noopener noreferrer\">bug in VirtualBox<\/a> when Apache is using sendfile to improve data transfer. Just turn the <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/en\/mod\/core.html#enablesendfile\" target=\"_blank\" rel=\"noopener noreferrer\">EnabeSendfile Directive<\/a> off in your httpd.conf, e.g.:<\/p>\n\n\n\n<pre><code class=\"language-bash\">EnableSendfile off<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When using Apache running on a VirtualBox machine with a shared folder, small files such as JavaScript or CSS files might not get updated from the host and served with additional characters at the end. This happens because of a bug in VirtualBox when Apache is using sendfile to improve data transfer. Just turn the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.speich.net\/articles\/en\/2017\/10\/28\/apache-serves-cached-files-with-garbled-text-at-end\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Apache serves cached files with garbled text at end&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6],"tags":[10,92],"class_list":["post-1434","post","type-post","status-publish","format-standard","hentry","category-javascript","category-php","tag-apache","tag-virtualbox","entry"],"_links":{"self":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/comments?post=1434"}],"version-history":[{"count":3,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1434\/revisions"}],"predecessor-version":[{"id":1653,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1434\/revisions\/1653"}],"wp:attachment":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/media?parent=1434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/categories?post=1434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/tags?post=1434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}