The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Detecting if user can accept gzip?
I'm thinking of including a hack in my forum which would provide extra information in forumdisplay, (specifically a preview of each thread).
However being mindful of bandwidth usage etc, I would like to be able to send the "enhanced" version of the page only to those who have opted to receive it and are able to get gzipped versions of the pages, it would likely use too many resources to send it un-gzipped. So is there a way I can do e.g. if($bbuser == gzipOn) { // do this } Thanks Mark. |
#2
|
||||
|
||||
As far as I know, the ability to view GZIP pages depends on the user's browser, and all the latest browsers down to Netscape 4.7 can read GZIP pages. I know that this can be switched off with certain browser plugins. I don't know if you can detect this though.
|
#3
|
||||
|
||||
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|