Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2009-10-01 14:23:18

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

makss – Here is what I see in my article:

Array ( [0] => zlib output compression [1] => default output handler [2] => aks_header_callback [3] => default output handler ) 

Does that give you any clues?

Offline

#26 2009-10-01 14:26:14

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Here is my list of active plugins. They all seem to have an “order” of 5, except for aks_header:

aks_header
asy_sitemap
gbp_admin_library
jmd_img_selector
nab_if_future
pap_contact_cleaner
rss_admin_show_adv_opts
rss_auto_excerpt
smd_where_used
tru_tags
upm_image
zem_contact_lang
zem_contact_reborn

Offline

#27 2009-10-01 14:36:31

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

makss – Here is what I see in my article:
Array ( [0] => zlib output compression [1] => default output handler [2] => aks_header_callback [3] => default output handler )

Your already use “zlib output compression”. Set attribute gzip=“0”

<txp:aks_header strip="1" gzip="0" /><!DOCTYPE html  . . .

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#28 2009-10-01 14:42:13

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Oh…D’oh! Thanks so much for your patience.

Is there any easy way to determine if a site is using gzip already? I did not think my web host offered mod_gzip. I certainly don’t think I did anything to enable it…Hm.

Offline

#29 2009-10-01 15:10:20

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

nabrown78 wrote:

Is there any easy way to determine if a site is using gzip already?

I use console utility wget (unix,linux,windows). Sample request:

wget -d --header "Accept-Encoding: gzip,deflate" http://yoursite.com/

Response (if used compression):
Content-Encoding: gzip
or
Content-Encoding: deflate

.

New version aks_header 0.3.3c
  • Added check if already using “zlib output compression”

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#30 2009-10-01 15:56:08

trenc
Plugin Author
From: ⛵️, currently Göteborg, SE
Registered: 2008-02-27
Posts: 574
Website GitHub

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Is there any easy way to determine if a site is using gzip already?

If you have Firefox, install the addon webdeveloper toolbar.
If installed you will find in the toolbar under »information« the last point »Show Response Header«. If you find a Content-Encoding: gzip in the output, so gzipping is enabled.


Digital nomad, sailing the world on a sailboat: 32fthome.com

Offline

#31 2009-10-01 16:11:07

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

If you have Firefox, install the addon webdeveloper toolbar.
If installed you will find in the toolbar under »information« the last point »Show Response Header«. If you find a Content-Encoding: gzip in the output, so gzipping is enabled.

Very cool! Yet another feature of the Web Developer toolbar that I hadn’t discovered.

I’m just now getting hip to the whole speed optimizing/gzip thing. I see that when mod_gzip isn’t available, aks_header is an excellent alternative for gzipping your html. Any recommendations on combining/gzipping multiple css and javascript files? In general I don’t manage my css through Textpattern’s Style tab, just keep it external.

Thanks for everyone’s help.

Offline

#32 2009-10-01 17:15:15

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

nabrown78 wrote:

Is there any easy way to determine if a site is using gzip already?

Google says: Online gzip test


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#33 2009-10-01 18:08:54

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Thanks I just found that handy tool. I also came across this post about combining and gzipping css and js on this forum. The page it refers to seems to present a good option for those of us who don’t have mod_gzip available.

Offline

#34 2009-10-02 10:50:38

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Thanks I just found that handy tool. I also came across this post about combining and gzipping css and js on this forum. The page it refers to seems to present a good option for those of us who don’t have mod_gzip available.

nabrown78, Thanks for links.

Warning in combine.php small bug. Need change line

if ($version == 6 && !strstr($_SERVER['HTTP_USER_AGENT'], 'EV1'))

to

if ($version == 6 && !strstr($_SERVER['HTTP_USER_AGENT'], 'SV1'))

aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#35 2009-10-02 11:12:27

makss
Plugin Author
From: Ukraine
Registered: 2008-10-21
Posts: 355
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

New version aks_header 0.3.4
  • Check for buggy versions of Internet Explorer

Last edited by makss (2016-01-16 18:40:15)


aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)

Offline

#36 2009-10-07 12:46:51

egyarnetsky
Member
From: Madison, Indiana
Registered: 2006-11-27
Posts: 13
Website

Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip

Am I correct in my assumption that aks301 can only forward to a specific page?

What I am needing is the ability to forward an old section to a new section…

ie… section “blog” is changing to section “news”… I need

http://www.domain.com/blog/blog-title

forwarded to…

http://www.domain.com/news/blog-title

Is there a way aks301 can do this that I am missing?
If I am correct in my assumption can y’all think of a plugin that will do this?

thanks!

Offline

Board footer

Powered by FluxBB