I have a small problem with caching images in the browser for my application with the application. I send the latest changes, the cache headers expire, but the image is downloaded from the server every time. Here is the header part of the code:
response ['Content-Type'] = 'image / jpg'
response ['Last-Modified'] = current_time.strftime ('% a,% d% b% Y% H:% M:% S GMT')
response ['Expires'] = current_time + timedelta (days = 30)
response ['Cache-Control'] = 'public, max-age = 2592000'
source share