hi Karen,

thanks for the response..I havent verified if the client is sending
the If-none-match header. Essentially my project uses rss feeds. and i
redirect them to feedburner. I dont want my site to keep sending http
200 along with the entire feed if no udpates have been made to the
feed. i can see the etag being sent in the http response. but when i
see the http access logs, the next time that the feedburner crawler
comes to fetch, my site sends out a http 200. As a reference, i
checked the http access logs on my self hosted wordpress blog and
found that WP correctly sends out 304 to Feedburner fetcher when
there's no new content.

-pranav.

On Nov 10, 7:39 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 10, 2008 at 4:14 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > I've tried using the USE_ETAGS=true in my project settings and even
> > tried using the ConditionalGet Middleware. However, whenever an http
> > request is made to my page, it always seems to return a http code 200
> > along with the entire data.
>
> > how / what do I need to do so that a http 304 is issued if the data
> > hasnt been modified ?
>
> > do i need to do do anything within my view to issue the http 304 ?
>
> No, I just set USE_ETAGS=True in my settings.py and (since I already had
> CommonMiddleware specified) now I see my server return 304 for unchanged
> pages.  Presumably you're using something to look at the headers in the
> requests/responses -- can you see the Etag in the responses?  Is your client
> sending If-None-Match when it then requests the same page?
>
> Karen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to