Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Enabling Gzip On Localhost

$
0
0
Hey Yii-phobians!
I am kind of stuck in this issue. I am trying to enable gzip in my application i followed the procedure in main configuration file

'onBeginRequest'=>create_function('$event', 'return ob_start("ob_gzhandler");'),
'onEndRequest'=>create_function('$event', 'return ob_end_flush();'),


First i was having a conflict with PHP Zlib Compression so i turned that off in my htaccess using

php_value zlib.output_compression off


In my WAMP apache DEFLATE_MODULE and HEADERS_MODULE is enable
but i think i am still not being able to gzip my JS & CSS

I am using YSLOW to check that whether its enabled or not
So is there any kind of advice how to achieve this

Viewing all articles
Browse latest Browse all 18717

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>