Hi,

My php_info(); shows these things
_ENV["HTTP_ACCEPT_ENCODING"] ==> gzip,deflate
HTTP_ACCEPT_ENCODING ==> gzip,deflate
_SERVER["HTTP_ACCEPT_ENCODING"] ==> gzip,deflate

Now i am adding headers to js file by inlcuding it in my php file.
<?php
  ob_start( 'ob_gzhandler' );
  echo join('',file('uitabs.js'));
  ob_end_flush();
?>

Then i am including uitabs.php in my index.php file. Now gzip is happening.

Can we do it automatically this one?

Thanks & Regards
Sridhar K N

On Mon, Oct 20, 2008 at 6:55 PM, leveille <[EMAIL PROTECTED]> wrote:

>
> Are you certain that you have enabled/loaded the deflate module on
> your server?  Add a phpinfo() page (I'm assuming you are writing a PHP
> app based on earlier comments)  and look for the section labeled
> "Loaded Modules".  In that section, look for "mod_deflate" as a loaded
> module.
>
> On Oct 19, 2:08 pm, "Sridhar Kuppalli" <[EMAIL PROTECTED]>
> wrote:
> > Hi Karl,
> >
> > Yes i am using apache.
> > I have created a new .htaccess file with the below mentioned line and
> added
> > to root directory of my site.
> > It started giving 500 internal server error.
> >
> > Then i have replaced that with this content specified in this url-
> http://nathanbowers.com/wp-content/uploads/2008/04/htaccess.txt
> >
> > Now my Performance Grade has been changed to C(76) !!! :-) which is
> really
> > good, before it was D(60).
> > Thanks for your help.
> >
> > But still my JS gzip is not happening. :-(
> http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js==> 55KB
> ==>
> > Response time is only 594.http://mysites/jsfolder/myjsfile.js==> 17KB
> ==>Response time is 1327.
> >
> > Why such a huge huge difference?
> > Yslow is clearly showing that myjsfile.js is not gziped.
> >
> > Thanks & Regards
> > Sridhar K N
> >
> > On Sun, Oct 19, 2008 at 9:13 PM, Karl Swedberg <[EMAIL PROTECTED]
> >wrote:
> >
> >
> >
> > > Sridhar,
> > > Are you using apache? Or are you using IIS?
> >
> > > If apache, you can create a .htaccess file and add this line to it:
> >
> > > AddOutputFilterByType DEFLATE text/javascript text/css
> > > application/javascript application/x-javascript
> >
> > > If IIS, please take a look at the link I posted earlier.
> >
> > >http://www.keylimetie.com/Blog/2008/5/20/How-to-enable-HTTP-Compressi.
> ..
> >
> > > MorningZ, glad to hear that the instructions in that linked page worked
> for
> > > you!
> >
> > > --Karl
> >
> > > ____________
> > > Karl Swedberg
> > >www.englishrules.com
> > >www.learningjquery.com
> >
> > > On Oct 19, 2008, at 9:01 AM, Sridhar Kuppalli wrote:
> >
> > > Thanks man,
> >
> > > Its really a good one, my request time for jquery library has been
> reduced
> > > by 50%!!!!.
> > > In the similar way I have to do for other js files also. Is there any
> way
> > > to achive gziping?
> > > I cannot configure apache.
> >
> > > Regards
> > > Sridhar K N
> >
> > > On Sun, Oct 19, 2008 at 3:34 PM, poncz <[EMAIL PROTECTED]>
> wrote:
> >
> > >> You can use
> > >>http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js
> > >> it is minified, gzip, and the load is not on your servers.
> > >> It is a free google ajax service.
> >
> > >> Enjoy,
> >
> > --
> > ------------------------------------------------------------
> > Thanks & Regards
> > S Kuppalli N
>



-- 
------------------------------------------------------------
Thanks & Regards
S Kuppalli N

Reply via email to