Hi Ryan, did you ever find a way to do this? I found an answer that said all heroku files are gzipped automatically, but that was back in 2009. Now when I look at the HTTP headers of my page it doesn't say they are gzipped. I am using php and my local version works fine, I have a root file .htaccess with the following in it, but if I view the phpinfo(); under Phar it says. I think this is why the files aren't being gzipped, but I don't know how to install the zlib extension.
gzip compressiondisabled (install ext/zlib) *.htaccess File contents:* php_value zlib.output_compression on <FilesMatch "\.js$"> AddHandler application/x-httpd-php .js php_value default_mimetype "text/javascript" </FilesMatch> <FilesMatch "\.css$"> AddHandler application/x-httpd-php .css php_value default_mimetype "text/css" </FilesMatch> <FilesMatch "\.xml$"> AddHandler application/x-httpd-php .xml php_value default_mimetype "text/xml" </FilesMatch> Any help would be much appreciated! On Monday, May 12, 2008 6:46:14 AM UTC+2, ryanaip wrote: > > Is it possible to enable expires headers and gzip-ing of css and > javascript files for production/blessed heroku sites? I have a site > whose largest component is a static javascript file, so it seems a > waste of bandwidth to download the file every time a user goes to a > new page. -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the web visit https://groups.google.com/d/msg/heroku/-/5F3fjX7wTfQJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
