Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
aks_header : Compress your pages on the fly. Strip white spaces + gzip
aks_header – Compress your pages on the fly.
Version 0.4.1 download link / homepage
Features:
- Set any page headers. It’s useful for create your custom feeds.
- Strip white spaces on the fly.
- GZIP compress on the fly.
- 301 redirect non exist pages or directories to other place.
- Calculate and set
Etag
header
.
Examples:
Place on top your page template
<txp:aks_header strip="1" gzip="1" /><!DOCTYPE html . . .
or place on top your xml page template
<txp:aks_header name="Content-Type" value="application/rss+xml" strip="1" gzip="1" /><?xml version="1.0" . . .
Tests
Page | Original size | Strip white spaces | GZIP | Strip+GZIP |
---|---|---|---|---|
http://makss.uaho.net/plugins/aks_rss | 16726 bytes | 15385 bytes | 4234 bytes | 4039 bytes |
Save space from original size | 0 % | 8 % | 75 % | 76 % |
.
aks_301 – Simple 301 redirect with conditions
Summary
This tag useful for redirect non exist pages or directories to other place.
Default: to domain root.
.
HowTo
Last edited by makss (2016-07-02 13:57:42)
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
#2 2009-08-07 09:38:44
- Dandruff
- Member
- Registered: 2007-03-16
- Posts: 18
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
Thank you so much for this one!
Works perfectly on the 4.2.0 release candidate.
Offline
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
Thanks for this great plugin.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
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
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
New version aks_header 0.3.2
- Now plugin aks_301 included in aks_header (2 in 1)
- Some minor changes
Last edited by makss (2016-01-16 18:35:23)
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
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
aks_header 0.3.2c
- Add no-cache header
- Add support multiple URLs for 301 redirect
Last edited by makss (2016-01-16 18:35:45)
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
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
I don’t know if this is a bug but on one of my web I started to use your great aks_header plugin. But when active and insert into code (in any gzip/strip combination) it conflict with gbp_permanent_links plugin that I use to url rewrite – everything works – only parameter for “pg” is shown, so instead of:
www.domain.com/3/
I have:
www.domain.com/?pg=3
It only crush with pagination, all others url rewrite seems to be ok. Have somebody an idea why?
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
beztak wrote:
I don’t know if this is a bug but on one of my web I started to use your great aks_header plugin. But when active and insert into code (in any gzip/strip combination) it conflict with gbp_permanent_links plugin
Please, try it.
aks_header 0.3.3
- Rewrite code for compatibility with gbp_permanent_links and some other plugins
Last edited by makss (2016-01-16 18:36:13)
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
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
It is working now – as I wrote I had a problem with pagination here: www.ovsem.net but now with aks_header 0.3.3 it’s all right. Thank you.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
#10 2009-09-19 16:56:39
- nik.martin
- New Member
- Registered: 2009-09-06
- Posts: 8
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
Thanks for the plugin. Using your instructions, modified only for context, I added the ability to add external javascript files. I followed your instructions exactly. The only problem is taht the end of any javascript file gets this added:
<h2 id=“comment”></h2>
Which then of course appears to break my javascript, jquery.js in this case:
http://admin1.servercorps.net/js/jquery.js
Any ideas?
Offline
#11 2009-09-19 20:40:32
- nik.martin
- New Member
- Registered: 2009-09-06
- Posts: 8
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
I think I found out what’s up: If Site Wide Comments are on (Admin > Preferences > Basic > Accept Comments), then an <h2 id=“comment”> is placed the bottom of EVERY article, regardless if comments are on for that article or whether “One By Default” is set to No, whic it is in my site. I think this is a bug in TXP, so I’m gonna check there. Otherwise, this totally breaks ANY use of aks_header for linking to normally external file in txp.
Offline
#12 2009-09-19 23:35:43
- TheEric
- Plugin Author
- From: Wyoming
- Registered: 2004-09-17
- Posts: 566
Re: aks_header : Compress your pages on the fly. Strip white spaces + gzip
Why is this any better than mod_gzip?
Offline