<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Serving Static Media In Django Development Server</title>
	<atom:link href="http://www.muhuk.com/2009/05/serving-static-media-in-django-development-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.muhuk.com/2009/05/serving-static-media-in-django-development-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=serving-static-media-in-django-development-server</link>
	<description>know thyself</description>
	<lastBuildDate>Thu, 29 Dec 2011 08:49:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Can</title>
		<link>http://www.muhuk.com/2009/05/serving-static-media-in-django-development-server/comment-page-1/#comment-236</link>
		<dc:creator>Can</dc:creator>
		<pubDate>Mon, 25 May 2009 19:32:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.muhuk.com/?p=225#comment-236</guid>
		<description>&lt;p&gt;what you need is to keep track of md5&#039;s of all static files in memory, then generate false paths for each static file such as /dres/34AEFAA1785DDD/file.css - then use url redirecting to direct /dres/[regexp]/*.css to actual path. then you can use a filter to rewrite the http response header in such a way that every file you serve has a long expiry date like 10 years. This way you never send the same file to the same client again, yet when the file changes the checksum changes, and the client cache is therefore flushed. You need to be able to masterfully modify the http header (multiple fields - expires, pragme and cache-control) with your own values. Too much fuss just to serve files? Thats the way you do it.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>what you need is to keep track of md5&#8242;s of all static files in memory, then generate false paths for each static file such as /dres/34AEFAA1785DDD/file.css &#8211; then use url redirecting to direct /dres/[regexp]/*.css to actual path. then you can use a filter to rewrite the http response header in such a way that every file you serve has a long expiry date like 10 years. This way you never send the same file to the same client again, yet when the file changes the checksum changes, and the client cache is therefore flushed. You need to be able to masterfully modify the http header (multiple fields &#8211; expires, pragme and cache-control) with your own values. Too much fuss just to serve files? Thats the way you do it.</p>]]></content:encoded>
	</item>
</channel>
</rss>

