{"id":644,"date":"2008-11-01T21:28:30","date_gmt":"2008-11-02T02:28:30","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=644"},"modified":"2011-04-06T19:18:12","modified_gmt":"2011-04-07T00:18:12","slug":"mod_deflate-p0wn3d","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/","title":{"rendered":"[mod_deflate] p0wn3d"},"content":{"rendered":"<p>I recently discovered <a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/mod\/mod_deflate.html\">[mod_deflate]<\/a>, which compresses webserver content before sending it out &#8211; if you&#8217;re not using it you should really check it out.  I turned it on and it worked flawlessly for me, with two exceptions.<\/p>\n<ol>\n<li>Server-side includes<br \/>\nThese just did not play well together out of the box&#8230;<\/li>\n<li>PHP and Perl &#8220;streaming&#8221; output<br \/>\nI have some scripts, most notably <a href=\"https:\/\/www.thedigitalmachine.com\/wiki\/index.php\/Imagescraper\">imagescraper<\/a>, that need to stream the html in the results page as it is computed, not all at once AFTER it is built, as mod_deflate requires.<\/li>\n<\/ol>\n<p>Turning off [mod_deflate] is trivial.  I used the no-gzip environment variable as follows:<\/p>\n<pre><code># MDM This is to disable [mod_deflate] for imagescraper, so we don't try to compress the streaming results...\r\n<Files images_google.pl>\r\n    SetEnv no-gzip 1\r\n<\/Files>\r\n\r\n# MDM Drop this into a virtual host block to TURN OFF [mod_deflate], so it doesn't break SSI.\r\nSetEnv no-gzip 1<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I recently discovered [mod_deflate], which compresses webserver content before sending it out &#8211; if you&#8217;re not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box&#8230; PHP and Perl &#8220;streaming&#8221; output [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[10,9],"tags":[68],"class_list":["post-644","post","type-post","status-publish","format-standard","hentry","category-tricks-tips-tools","category-websites","tag-mod_deflate"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"I recently discovered [mod_deflate], which compresses webserver content before sending it out - if you&#039;re not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box... PHP and Perl &quot;streaming&quot; output\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"m\"\/>\n\t<meta name=\"keywords\" content=\"tricks tips tools,websites\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"bitpost.com\/news | Note to self\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"[mod_deflate] p0wn3d | bitpost.com\/news\" \/>\n\t\t<meta property=\"og:description\" content=\"I recently discovered [mod_deflate], which compresses webserver content before sending it out - if you&#039;re not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box... PHP and Perl &quot;streaming&quot; output\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2008-11-02T02:28:30+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2011-04-07T00:18:12+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"[mod_deflate] p0wn3d | bitpost.com\/news\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I recently discovered [mod_deflate], which compresses webserver content before sending it out - if you&#039;re not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box... PHP and Perl &quot;streaming&quot; output\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#article\",\"name\":\"[mod_deflate] p0wn3d | bitpost.com\\\/news\",\"headline\":\"[mod_deflate] p0wn3d\",\"author\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"},\"datePublished\":\"2008-11-01T21:28:30-04:00\",\"dateModified\":\"2011-04-06T19:18:12-04:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#webpage\"},\"articleSection\":\"Tricks Tips Tools, Websites, mod_deflate\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bitpost.com\\\/news\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/projects\\\/#listItem\",\"name\":\"Projects\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/projects\\\/#listItem\",\"position\":2,\"name\":\"Projects\",\"item\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/projects\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/projects\\\/websites\\\/#listItem\",\"name\":\"Websites\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/projects\\\/websites\\\/#listItem\",\"position\":3,\"name\":\"Websites\",\"item\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/projects\\\/websites\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#listItem\",\"name\":\"[mod_deflate] p0wn3d\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/projects\\\/#listItem\",\"name\":\"Projects\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#listItem\",\"position\":4,\"name\":\"[mod_deflate] p0wn3d\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/category\\\/projects\\\/websites\\\/#listItem\",\"name\":\"Websites\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\",\"name\":\"m\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/\",\"name\":\"m\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg\",\"width\":96,\"height\":96,\"caption\":\"m\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#webpage\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/\",\"name\":\"[mod_deflate] p0wn3d | bitpost.com\\\/news\",\"description\":\"I recently discovered [mod_deflate], which compresses webserver content before sending it out - if you're not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box... PHP and Perl \\\"streaming\\\" output\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/2008\\\/mod_deflate-p0wn3d\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/author\\\/m\\\/#author\"},\"datePublished\":\"2008-11-01T21:28:30-04:00\",\"dateModified\":\"2011-04-06T19:18:12-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#website\",\"url\":\"https:\\\/\\\/bitpost.com\\\/news\\\/\",\"name\":\"bitpost.com\\\/news\",\"description\":\"Note to self\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/bitpost.com\\\/news\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"[mod_deflate] p0wn3d | bitpost.com\/news","description":"I recently discovered [mod_deflate], which compresses webserver content before sending it out - if you're not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box... PHP and Perl \"streaming\" output","canonical_url":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/","robots":"max-image-preview:large","keywords":"tricks tips tools,websites","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#article","name":"[mod_deflate] p0wn3d | bitpost.com\/news","headline":"[mod_deflate] p0wn3d","author":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"publisher":{"@id":"https:\/\/bitpost.com\/news\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"},"datePublished":"2008-11-01T21:28:30-04:00","dateModified":"2011-04-06T19:18:12-04:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#webpage"},"isPartOf":{"@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#webpage"},"articleSection":"Tricks Tips Tools, Websites, mod_deflate"},{"@type":"BreadcrumbList","@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news#listItem","position":1,"name":"Home","item":"https:\/\/bitpost.com\/news","nextItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/projects\/#listItem","name":"Projects"}},{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/projects\/#listItem","position":2,"name":"Projects","item":"https:\/\/bitpost.com\/news\/category\/projects\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/projects\/websites\/#listItem","name":"Websites"},"previousItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/projects\/websites\/#listItem","position":3,"name":"Websites","item":"https:\/\/bitpost.com\/news\/category\/projects\/websites\/","nextItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#listItem","name":"[mod_deflate] p0wn3d"},"previousItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/projects\/#listItem","name":"Projects"}},{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#listItem","position":4,"name":"[mod_deflate] p0wn3d","previousItem":{"@type":"ListItem","@id":"https:\/\/bitpost.com\/news\/category\/projects\/websites\/#listItem","name":"Websites"}}]},{"@type":"Person","@id":"https:\/\/bitpost.com\/news\/#person","name":"m","image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"}},{"@type":"Person","@id":"https:\/\/bitpost.com\/news\/author\/m\/#author","url":"https:\/\/bitpost.com\/news\/author\/m\/","name":"m","image":{"@type":"ImageObject","@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/884c1dbbf1027f261dbf20652687af7ad0030bfa71ff0ef56540938bdc70be2f?s=96&d=monsterid&r=pg","width":96,"height":96,"caption":"m"}},{"@type":"WebPage","@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#webpage","url":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/","name":"[mod_deflate] p0wn3d | bitpost.com\/news","description":"I recently discovered [mod_deflate], which compresses webserver content before sending it out - if you're not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box... PHP and Perl \"streaming\" output","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/bitpost.com\/news\/#website"},"breadcrumb":{"@id":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/#breadcrumblist"},"author":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"creator":{"@id":"https:\/\/bitpost.com\/news\/author\/m\/#author"},"datePublished":"2008-11-01T21:28:30-04:00","dateModified":"2011-04-06T19:18:12-04:00"},{"@type":"WebSite","@id":"https:\/\/bitpost.com\/news\/#website","url":"https:\/\/bitpost.com\/news\/","name":"bitpost.com\/news","description":"Note to self","inLanguage":"en-US","publisher":{"@id":"https:\/\/bitpost.com\/news\/#person"}}]},"og:locale":"en_US","og:site_name":"bitpost.com\/news | Note to self","og:type":"article","og:title":"[mod_deflate] p0wn3d | bitpost.com\/news","og:description":"I recently discovered [mod_deflate], which compresses webserver content before sending it out - if you're not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box... PHP and Perl &quot;streaming&quot; output","og:url":"https:\/\/bitpost.com\/news\/2008\/mod_deflate-p0wn3d\/","article:published_time":"2008-11-02T02:28:30+00:00","article:modified_time":"2011-04-07T00:18:12+00:00","twitter:card":"summary","twitter:title":"[mod_deflate] p0wn3d | bitpost.com\/news","twitter:description":"I recently discovered [mod_deflate], which compresses webserver content before sending it out - if you're not using it you should really check it out. I turned it on and it worked flawlessly for me, with two exceptions. Server-side includes These just did not play well together out of the box... PHP and Perl &quot;streaming&quot; output"},"aioseo_meta_data":{"post_id":"644","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-03-13 19:50:40","updated":"2025-08-17 19:01:28","seo_analyzer_scan_date":null},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-ao","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=644"}],"version-history":[{"count":4,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/644\/revisions"}],"predecessor-version":[{"id":1143,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/644\/revisions\/1143"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}