Dashboard > blojsom 3.0 > ... > Plugins > Conditional GET Plugin
  blojsom 3.0 Log In   View a printable version of the current page.  
  Conditional GET Plugin
Added by David Czarnecki, last edited by David Czarnecki on Jan 23, 2007  (view change)
Labels: 

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.

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators