Commits

Tim Gerundt  committed c961154

Web: Use GZIP compression from PHP for CSS files too

  • Participants
  • Parent commits cc8aeb8

Comments (0)

Files changed (3)

File Web/.htaccess

 #Use PHP5 instead of PHP4
 AddType x-mapp-php5 .php
 
+#Use PHP5 for CSS files
+AddType x-mapp-php5 .css 
+#AddType application/x-httpd-php .css 
+
 #Redirect PAD download URL to current WinMerge version...
 Redirect permanent /downloads/WinMerge-Setup.exe http://downloads.sourceforge.net/winmerge/WinMerge-2.12.4-Setup.exe
 

File Web/engine/css/print.css

+<?php
+ob_start('ob_gzhandler'); //Use GZIP compression from PHP, since 1and1 don't support it from Apache!
+header('Content-type: text/css');
+?>
 body {
 	margin: 0;
 	padding: 0;

File Web/engine/css/screen.css

+<?php
+ob_start('ob_gzhandler'); //Use GZIP compression from PHP, since 1and1 don't support it from Apache!
+header('Content-type: text/css');
+?>
 body {
 	margin: 0;
 	padding: 0;