Description
The Conditional GET plugin reduces the bandwidth you send out from your blog for the flavors for which it is enabled. It works by examining various HTTP headers which indicate when the requesting client last polled your blog. This is quite useful for the various syndication formats that blojsom can produce such as RSS and Atom, as weblog aggregators are typically setup to poll syndication feeds at specific intervals. If nothing has changed in your blog, an HTTP 304 response code (Not Modified) is sent back to the requesting client. In the case of an HTTP 304 response code, the client will not process the request further.
This plugin is based on information from HTTP Conditional GET for RSS Hackers
.
Installation and Setup
In your /WEB-INF/classes/blojsom-plugins.xml file, add the following:
<bean id="conditional-get" class="org.blojsom.plugin.limiter.ConditionalGetPlugin" init-method="init"
destroy-method="destroy"/>
You may then add "conditional-get" to one of the flavor-based plugin chains. This would typically be done for the syndication feeds such as RSS and Atom.