Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Umm! G Zip 
 
Fella's,

Is it wise to use GZip globally like "everything in ALL pages " are GZipped?

Or should it be used selectively for say pages, Or sections of pages that can be Zipped as against some pages with url re-directs where the re-direct stops working if it's GZipped?

Also, Cached pages (Cached as .html and not serialised) tend to fail if GZip is global.

So what's the best way to use/apply it? Or is there really of any value to use Gzip if the pages are cached anyway?
 



 
mortSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Umm! G Zip 
 
Yeah, gzip helps because it's less bandwidth used (which do NOT change whether the HTML is cached or not). The other solution could be to use "ETags" to tell the client the page is still fresh and should not be re-downloaded.
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Umm! G Zip 
 
From what I've read about ETags - It may be ok for static pages like Wikipeadia but fairly irrelevant with dynamic pages where even one item may change such as 2 goes to 4 etc..

As for GZip - If I enable it globally this script below acts like JS is disabled in the browser and one gets a <noscript type of response with a popup - click here - goto - template.

Spoiler: [ Show ]


So that's pretty useless.

And I think that, that was the basis of my question - Is it better to use GZip selectively or construct the templates to work globally with GZip. And to me, the latter seems a lot of damn work when GZip will only crunch the text type scripts and not compress the images?

Like Icy P - I use a lot of nested templates, maybe it would be better NOT only for me but for IP too if the templates were not nested so that each and every one of them where applicable could be crunched.
 



 
mortSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Umm! G Zip 
 
That's not really how this works, AFAIK. You can just pass an argument for ob_start() to get gzip'd.
 




____________
IcyPhoenix ADR RPGEzArena (modded phpBB2+ADR)
 
InformproSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Umm! G Zip 
 
AFAIK, ob_start() must be immediately after the <?php and ob_end() must be immediately before the ?>

I did read about it all to the best of my understanding - but the emphasis if I recall was to flush headers?

So what with caching, GZip and ob_ start, flush, clean - One is more confused than ever.  

I mean in the example below I can't cache the Header or the Footer because they contain stuff that shouldn't be cached.

But I cache the guts of it which is the most Database demanding to load all the games and data etc.

So what would you change there to make it as small as possible in size?

Spoiler: [ Show ]

 



 
mortSend private message  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron