I have a custom settings form with a photo field: photo =
forms.ImageField(max_length=200, required=False)

On submission with a new photo being uploaded, I delete any existing
image including its parent folder and replace with the new one. When
the settings page is reloaded, the old image is still displayed.
However, if I do a power refresh in the browser, ctrl+F5 the cache is
removed and the uploaded image displays fine.

Here are some of the response headers from the server:

HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Fri, 19 Nov 2010 18:32:38 GMT
Content-Type: image/jpeg
Connection: keep-alive
Last-Modified: Fri, 19 Nov 2010 18:32:34 GMT
Etag: "1a0685-d65-4956c214f7f1b"
Accept-Ranges: bytes
Content-Length: 3429


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to