Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install tiddlywebplugins.etagcache

How to install tiddlywebplugins.etagcache

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install tiddlywebplugins.etagcache
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.7
0.10.0Never BuiltWhy not?
0.7 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.2 Available View build log
Windows (64-bit)
0.7
0.10.0Never BuiltWhy not?
0.7 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.2 Available View build log
Mac OS X (10.5+)
0.7
0.10.0Never BuiltWhy not?
0.7 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.2 Available View build log
Linux (32-bit)
0.10.0 Available View build log
0.7 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.2 Available View build log
Linux (64-bit)
0.10.0 Available View build log
0.7 Available View build log
0.6 Available View build log
0.4 Available View build log
0.3 Available View build log
0.2 Available View build log
 
Author
Lastest release
version 0.10.0 on Jun 8th, 2013

This is a plugin for TiddlyWeb that creates a cache of ETags.

It uses the memcached handling provided by tiddlywebplugins.caching.

Cache invalidation is handled via store hooks and this trick: http://code.google.com/p/memcached/wiki/FAQ#Deleting_by_Namespace

Note the test files are not good tests, there were used to structure development but do not adequately assert anything.

The plugins keeps a cache of ETags so we don't need to access the store to do validation.

This operates as a two tiered piece of middleware.

On the request side it checks if the request is a GET and if it includes an If-None-Match header. If it does it looks up the current URI in the cache and compares the value with what's in the If-Match header. If they are the same we can raise a 304 right now.

On the response side, if the current request is a GET and the outgoing response has an ETag, put the current URI and ETag into the cache.

Store HOOKs are used to invalidate the cache through the management of namespaces.

Installation is simply adding the plugin name to system_plugins and twanager_plugins in tiddlywebconfig.py

Licensed as TiddlyWeb itself. Copyright 2011, Chris Dent <cdent@peermore.com>

Subscribe to package updates

Last updated Jun 8th, 2013

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.