djangosnippets.org: Latest snippets tagged with 'anchor-rewrite'https://djangosnippets.org/tags/anchor-rewrite/2008-07-29T10:22:34.708746-05:00[middleware] Rewrite anchors to point into Coral CDN
2008-07-29T10:22:34.708746-05:00crime_ministerhttps://djangosnippets.org/snippets/925/<p>This simple middleware rewrites the 'href' attribute of any <code><a></code> tags in your response content. The URL href is modified by appending the string '.nyud.net', which causes the Coral Content Distribution Network to retrieve a copy of the page and cache it before returning it to the user agent.</p>
<p>This …</p>
Freely redistributable