Jump to content
MDDHosting Forums

turning GZIP compression off for a single page


skunkbad
 Share

Recommended Posts

Normally when I want to turn GZIP compression off for a single page, I would use this in my script:

 

ini_set('zlib.output_compression', 0);

 

but this doesn't work here in mddhosting. Is there something else I should try? I don't want to turn off compression for the whole site, just a page at a time.

Link to comment
Share on other sites

Normally when I want to turn GZIP compression off for a single page, I would use this in my script:

 

ini_set('zlib.output_compression', 0);

 

but this doesn't work here in mddhosting. Is there something else I should try? I don't want to turn off compression for the whole site, just a page at a time.

It's not turned on in PHP - it's something that is on across the board with LiteSpeed - what is the particular reason you want to disable the GZIP Compression?

Link to comment
Share on other sites

It's not turned on in PHP - it's something that is on across the board with LiteSpeed - what is the particular reason you want to disable the GZIP Compression?

 

Well, in the PHP manual, on the flush() page, it says:

 

Server modules for Apache like mod_gzip may do buffering of their own that will cause flush() to not result in data being sent immediately to the client.

 

So, in some cases, I turn it off with ini_set(). If it is easy, I'd like to turn it off when I feel like it, but it's not mission critical.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...