How can I get mod_deflate on Apache and Heroku Cedar with a PHP app? I have mod_deflate importing and rules set set in my htaccess, yet my responses won't gzip.
Getting mod_deflate working on Apache for a PHP app on Heroku's Cedar stack
1k Views Asked by David Sawyer At
1
There are 1 best solutions below
Related Questions in APACHE
- .htaccess redirect 403 error files to 404 error document
- RestApi server code is not workinng
- Convert Apache VirtualHost to nginx Server Block for Dynamic Subdomains
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- Premature end of script on VPS
- Rasterization with Javascript looks different on Apache server
- Vagrant - Ansible error installing Apache
- Can't use subdomain in Chrome using Apache (XAMPP)
- Django webapp (on an Apache2 server) hangs indefintely when importing nltk in views.py
- Redirect keystone app to sub directory using htaccess
- How can I integrate Solr5.1.0 with Nutch1.10
- Disconnect Client connected to cgi application
- Solr ping taking time during full import
- How to redirect an incoming request to specific serverName to different server in apache2?
- What is the correct way to link Django Flatpages?
Related Questions in HEROKU
- NoMethodError: undefined method `update_average_rating' for nil:NilClass
- Using Amazon KMS service on Heroku
- How to have Heroku build my development branch on a staging server?
- Heroku not fetching from DB when scheduler running
- Search for a key in django.core.cache
- Ruby app fails in https request on heroku.com
- Rails: NameError: uninitialized constant Rails::Application::YAML
- clojure worker-only app on heroku fails with Error R10
- Clockwork not logging to Heroku console
- Javascript working in development locally but not production on Heroku
- Heroku PostgreSQL Studio not finding databases
- Heroku : Username for 'https://git.heroku.com': git
- Pg backups curl latest dump from Heroku
- How do you deploy build artifacts to Heroku from Codeship?
- Custom validation message (in model file) that includes a path not working
Related Questions in MOD-DEFLATE
- Get Apache to auto-decompress a file, but only if needed
- Getting mod_deflate working on Apache for a PHP app on Heroku's Cedar stack
- .htaccess - Set expire headers while url rewriting
- php error compression mod_deflate gzip compression
- Why I should not compress images in HTTP headers?
- PageSpeed site optimization trouble
- GZIP only compresses files when full file path specified - won't compress root
- Apache 2.x mod_deflate compression only working on OSX
- videos not playing in Flowplayer after configuring mod deflate
- How to make Apache mod_deflate and Transfer-encoding : Chunked work together?
- Apache mod_deflate not compressing json output
- How to flush gzipped part of html page
- mod_deflate not compressing js in wordpress site
- PHP + gzip: close connection and continue executing
- Apache lags when responding to gzipped requests
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Not sure if you're still interested in solving this problem, but here goes. A lot of this is going to depend on how you've set your dyno up.
If you're running the Heroku PHP buildpack with Apache, the buildpack version of Apache comes with mod_deflate pre-installed.
Even if you're not running the Heroku PHP buildpack, there's some chance that mod_deflate might be pre-installed. You can check by running a bash prompt on a one-off dyno and using apache2ctl to list all available modules:
After ensuring that mod_deflate was installed and enabled, I then used the .htacess configuration recommended by html5-boilerplate to compress textual MIME types. I added this config to my apache config, but I would think it would work from .htaccess too. After deploying the new configuration, mod_deflate worked as expected.
Hope this helps!