<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Hacking WP Super Cache for Speed</title>
	<atom:link href="http://www.askapache.com/htaccess/hacking-wp-super-cache-for-speed.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com/htaccess/hacking-wp-super-cache-for-speed.html</link>
	<description>Web Development</description>
	<pubDate>Fri, 29 Aug 2008 19:07:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: AskApache</title>
		<link>http://www.askapache.com/htaccess/hacking-wp-super-cache-for-speed.html#comment-44051</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Mon, 11 Aug 2008 12:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=534#comment-44051</guid>
		<description>I ended up just making my own caching plugin which is still in house..  Its pretty cool for pimping this server out.  Right now I'm serving up both text/html application/xhtml+xml... Both of which are available in gzip as well and both of which validate as strict as it goes.

I've been playing around with other forms of media that I can also incorporate.. I've already added custom rdf files for every page using the same caching system which I might release when I finish with this password protection upgrade.

Its based on my lightning cache plugin.


--- 

Here's some of the code I'm at today if it helps.. 




RewriteCond %{REQUEST_METHOD} !^(GET&#124;HEAD) [OR]
RewriteCond %{QUERY_STRING} !^$ [OR]
RewriteCond %{HTTP_COOKIE} ^.*(comment_author_&#124;wordpress&#124;wp-postpass_).*$ [NC]
RewriteRule ^(.*)$ - [S=6]

RewriteCond %{HTTP_USER_AGENT} .*W3C_Validator.* [NC]
RewriteCond %{HTTP:Accept-Encoding} gzip [NC]
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.xhtml.gz -f
RewriteRule ^(.*)$ /fast-cache/$1/index.xhtml.gz [L,S=5]

RewriteCond %{HTTP:Accept} application/xhtml\+xml [NC]
RewriteCond %{HTTP:Accept-Encoding} gzip [NC]
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.xhtml.gz -f
RewriteRule ^(.*)$ /fast-cache/$1/index.xhtml.gz [L,S=4]

RewriteCond %{HTTP:Accept-Encoding} gzip [NC]
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.html.gz -f
RewriteRule ^(.*)$ /fast-cache/$1/index.html.gz [L,S=3]

RewriteCond %{HTTP_USER_AGENT} .*W3C_Validator.* [NC]
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.xhtml -f
RewriteRule ^(.*)$ /fast-cache/$1/index.xhtml [L,S=2]

RewriteCond %{HTTP:Accept} application/xhtml\+xml [NC]
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.xhtml -f
RewriteRule ^(.*)$ /fast-cache/$1/index.xhtml [L,S=1]

RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.html -f
RewriteRule ^(.*)$ /fast-cache/$1/index.html [L]







FileETag None

AddEncoding x-gzip .gz

AddType 'application/xhtml+xml; charset=UTF-8' .xhtml
AddType 'text/html; charset=UTF-8' .html

Header set P3P "policyref=\"http://www.askapache.com/w3c/p3p.xml\""
Header set Content-Language "en-US"






# BEGIN AskApache Crazy Cache
FileETag All

AddEncoding x-gzip .gz

AddType 'application/xhtml+xml; charset=UTF-8' .xhtml
AddType 'application/xhtml+xml; charset=UTF-8' .xhtml.gz

AddType 'text/html; charset=UTF-8' .html
AddType 'text/html; charset=UTF-8' .html.gz

Header set P3P "policyref=\"http://www.askapache.com/w3c/p3p.xml\""
Header set X-Pingback "http://www.askapache.com/xmlrpc.php"
Header set Content-Language "en-US"
Header set Vary "Accept-Encoding,Accept"


ExpiresActive On
ExpiresDefault A3600

# END AskApache Crazy Cache
</description>
		<content:encoded><![CDATA[<p>I ended up just making my own caching plugin which is still in house..  Its pretty cool for pimping this server out.  Right now I&#8217;m serving up both text/html application/xhtml+xml&#8230; Both of which are available in gzip as well and both of which validate as strict as it goes.</p>
<p>I&#8217;ve been playing around with other forms of media that I can also incorporate.. I&#8217;ve already added custom rdf files for every page using the same caching system which I might release when I finish with this password protection upgrade.</p>
<p>Its based on my lightning cache plugin.</p>
<p>&#8212; </p>
<p>Here&#8217;s some of the code I&#8217;m at today if it helps.. </p>
<p>RewriteCond %{REQUEST_METHOD} !^(GET|HEAD) [OR]<br />
RewriteCond %{QUERY_STRING} !^$ [OR]<br />
RewriteCond %{HTTP_COOKIE} ^.*(comment_author_|wordpress|wp-postpass_).*$ [NC]<br />
RewriteRule ^(.*)$ - [S=6]</p>
<p>RewriteCond %{HTTP_USER_AGENT} .*W3C_Validator.* [NC]<br />
RewriteCond %{HTTP:Accept-Encoding} gzip [NC]<br />
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.xhtml.gz -f<br />
RewriteRule ^(.*)$ /fast-cache/$1/index.xhtml.gz [L,S=5]</p>
<p>RewriteCond %{HTTP:Accept} application/xhtml\+xml [NC]<br />
RewriteCond %{HTTP:Accept-Encoding} gzip [NC]<br />
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.xhtml.gz -f<br />
RewriteRule ^(.*)$ /fast-cache/$1/index.xhtml.gz [L,S=4]</p>
<p>RewriteCond %{HTTP:Accept-Encoding} gzip [NC]<br />
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.html.gz -f<br />
RewriteRule ^(.*)$ /fast-cache/$1/index.html.gz [L,S=3]</p>
<p>RewriteCond %{HTTP_USER_AGENT} .*W3C_Validator.* [NC]<br />
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.xhtml -f<br />
RewriteRule ^(.*)$ /fast-cache/$1/index.xhtml [L,S=2]</p>
<p>RewriteCond %{HTTP:Accept} application/xhtml\+xml [NC]<br />
RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.xhtml -f<br />
RewriteRule ^(.*)$ /fast-cache/$1/index.xhtml [L,S=1]</p>
<p>RewriteCond %{DOCUMENT_ROOT}/fast-cache/$1/index.html -f<br />
RewriteRule ^(.*)$ /fast-cache/$1/index.html [L]</p>
<p>FileETag None</p>
<p>AddEncoding x-gzip .gz</p>
<p>AddType &#8216;application/xhtml+xml; charset=UTF-8&#8242; .xhtml<br />
AddType &#8216;text/html; charset=UTF-8&#8242; .html</p>
<p>Header set P3P &#8220;policyref=\&#8221;http://www.askapache.com/w3c/p3p.xml\&#8221;"<br />
Header set Content-Language &#8220;en-US&#8221;</p>
<p># BEGIN AskApache Crazy Cache<br />
FileETag All</p>
<p>AddEncoding x-gzip .gz</p>
<p>AddType &#8216;application/xhtml+xml; charset=UTF-8&#8242; .xhtml<br />
AddType &#8216;application/xhtml+xml; charset=UTF-8&#8242; .xhtml.gz</p>
<p>AddType &#8216;text/html; charset=UTF-8&#8242; .html<br />
AddType &#8216;text/html; charset=UTF-8&#8242; .html.gz</p>
<p>Header set P3P &#8220;policyref=\&#8221;http://www.askapache.com/w3c/p3p.xml\&#8221;"<br />
Header set X-Pingback &#8220;http://www.askapache.com/xmlrpc.php&#8221;<br />
Header set Content-Language &#8220;en-US&#8221;<br />
Header set Vary &#8220;Accept-Encoding,Accept&#8221;</p>
<p>ExpiresActive On<br />
ExpiresDefault A3600</p>
<p># END AskApache Crazy Cache</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.askapache.com/htaccess/hacking-wp-super-cache-for-speed.html#comment-44045</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 11 Aug 2008 10:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=534#comment-44045</guid>
		<description>While I agree that the rules aren't entirely optimal, there's a problem with your ruleset.

"RewriteCond %{HTTP:Accept-Encoding} gzip" in the original causes a Vary: Accept-Encoding header to be appended if the rule passes as true.

Without that header, a front-end or intermediate cache could, for example, send cached gzipped content to a UA that doesn't support it.</description>
		<content:encoded><![CDATA[<p>While I agree that the rules aren&#8217;t entirely optimal, there&#8217;s a problem with your ruleset.</p>
<p>&#8220;RewriteCond %{HTTP:Accept-Encoding} gzip&#8221; in the original causes a Vary: Accept-Encoding header to be appended if the rule passes as true.</p>
<p>Without that header, a front-end or intermediate cache could, for example, send cached gzipped content to a UA that doesn&#8217;t support it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AskApache</title>
		<link>http://www.askapache.com/htaccess/hacking-wp-super-cache-for-speed.html#comment-41861</link>
		<dc:creator>AskApache</dc:creator>
		<pubDate>Sun, 01 Jun 2008 02:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=534#comment-41861</guid>
		<description>@Stuart and stuart

Thank you both for taking the time to let me know, I've added the date under the title great suggestion!

This article of mine really isn't that good to begin with, I'm still waiting on more improvements before I switch from wp-cache.</description>
		<content:encoded><![CDATA[<p>@Stuart and stuart</p>
<p>Thank you both for taking the time to let me know, I&#8217;ve added the date under the title great suggestion!</p>
<p>This article of mine really isn&#8217;t that good to begin with, I&#8217;m still waiting on more improvements before I switch from wp-cache.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stuart</title>
		<link>http://www.askapache.com/htaccess/hacking-wp-super-cache-for-speed.html#comment-41842</link>
		<dc:creator>stuart</dc:creator>
		<pubDate>Sat, 31 May 2008 12:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=534#comment-41842</guid>
		<description>I agree with the other comment, I've just been looking for a date and I'm not sure if this article is still valid.
offtopic: his name is stuart aswell, what are the odds?</description>
		<content:encoded><![CDATA[<p>I agree with the other comment, I&#8217;ve just been looking for a date and I&#8217;m not sure if this article is still valid.<br />
offtopic: his name is stuart aswell, what are the odds?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://www.askapache.com/htaccess/hacking-wp-super-cache-for-speed.html#comment-40662</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Tue, 13 May 2008 14:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.askapache.com/?p=534#comment-40662</guid>
		<description>Hi, do you think you could put the date somewhere on the post. It's a little annoying landing here from google and not knowing if what I'm reading is fresh or outdated, especially when it says stuff like this article says.

To find the date of this particular page I had to go to your homepage, look down the sidebar, click on the 'Cache' tag, and find the excerpt among the index listings. Not high usability by any means :(</description>
		<content:encoded><![CDATA[<p>Hi, do you think you could put the date somewhere on the post. It&#8217;s a little annoying landing here from google and not knowing if what I&#8217;m reading is fresh or outdated, especially when it says stuff like this article says.</p>
<p>To find the date of this particular page I had to go to your homepage, look down the sidebar, click on the &#8216;Cache&#8217; tag, and find the excerpt among the index listings. Not high usability by any means :(</p>
]]></content:encoded>
	</item>
</channel>
</rss>
