Skip to main content

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>

Metadata

Release files for tiddlywebplugins.etagcache 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tiddlywebplugins.etagcache 0.10.0
File Size Uploaded Provenance Actions
tiddlywebplugins.etagcache-0.10.0.tar.gz 13.0 kB Without provenance Details for tiddlywebplugins.etagcache-0.10.0.tar.gz

Release files / tiddlywebplugins.etagcache-0.10.0.tar.gz

Download URL tiddlywebplugins.etagcache-0.10.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6880a8c563c981b92b9d75e997f4d1507c387311dcb57151f9de0588d7c19d64
BLAKE2b-256 checksum
How to use checksums
63ea9ca086d54760eb1a273f70ebd75d44b319bea351f226d6d7b7b83cdb55bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tiddlywebplugins.etagcache 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page