]> source.dussan.org Git - nextcloud-server.git/commitdiff
turn off mod_pagespeed
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 8 Jan 2014 06:56:08 +0000 (07:56 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 8 Jan 2014 06:56:08 +0000 (07:56 +0100)
.htaccess
lib/private/setup.php

index 08e2a82facbfc2a80ef95eb21a3533de1136bc3f..fa6263c7ffe175595e3b3bb9ad590057f1015459 100755 (executable)
--- a/.htaccess
+++ b/.htaccess
@@ -38,3 +38,6 @@ DirectoryIndex index.php index.html
 </IfModule>
 AddDefaultCharset utf-8
 Options -Indexes
+<IfModule pagespeed_module>
+        ModPagespeed Off
+</IfModule>
index b5c530a091fd02741edbc98f996849bdb2710ca6..5232398d1d760253a9640f9e006938dd46df09aa 100644 (file)
@@ -159,6 +159,9 @@ class OC_Setup {
                $content.= "</IfModule>\n";
                $content.= "AddDefaultCharset utf-8\n";
                $content.= "Options -Indexes\n";
+               $content.= "<IfModule pagespeed_module>\n";
+               $content.= "ModPagespeed Off\n";
+               $content.= "</IfModule>\n";
                @file_put_contents(OC::$SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it
 
                self::protectDataDirectory();