Hi,

I don't know the answer as I haven't really used caching, but I guess
the correct way to do it is to play with the HTTP headers, tweaking
the Cache-Control setting.

The headers can be changed with the response object, available in your
controller:

# Set HTTP response headers before returning
response.headers['Cache-Control'] = 'some value here'

Here's the RFC about Cache-Control:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9

Regards,
Alex

2009/11/25 Lea H <[email protected]>:
> Hi,
> I have an image like that <img src='controller/action' /> that calls
> action in controller. This action creates a PIL and sends it to the
> browser. It seems that once the action was called the resulting image
> is cached and reused every time the image is shown (the action is not
> called anymore). Since the image contains dynamic data I need it to be
> re-created every time I go on that page. Can I somehow tell the
> browser not to cache that specific image?
>
> Thanks for you help.
>
> Cheers,
> Lea
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.


Reply via email to