﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
20087	RSS updating issue	julyzergcn1@…	nobody	"Hi, some RSS readers cannot update the latest post because of the Last-Modified header not shown in Django version < 1.5. I find Django1.5 has fix this issue. Can you also make this  in Django1.4(or even 1.3)?

Please refer to the code below:

class Feed(object):
    ...
    def __call__(self, request, *args, **kwargs):
        try:
            obj = self.get_object(request, *args, **kwargs)
        except ObjectDoesNotExist:
            raise Http404('Feed object does not exist.')
        feedgen = self.get_feed(obj, request)
        response = HttpResponse(mimetype=feedgen.mime_type)
        if hasattr(self, 'item_pubdate'):
            # if item_pubdate is defined for the feed, set header so as
            # ConditionalGetMiddleware is able to send 304 NOT MODIFIED
            response['Last-Modified'] = http_date(
                timegm(feedgen.latest_post_date().utctimetuple()))
        feedgen.write(response, 'utf-8')
        return response
"	Uncategorized	closed	contrib.syndication	1.4	Normal	duplicate	RSS updating		Unreviewed	0	0	0	0	1	0
