How to clear browser cache with python django? -


i want clear users browser cache using django.

what have tried

i have simple function

from django.core.cache import cache  def clear(request):     cache.clear()     return httpresponse('cleared') 

but won't clears cache

is there better option this

browser caches don't work in way. django.core.cache has nothing browser cache.

caching broad , rather complicated topic. you'll have learn http headers, tags, different browser behaviour, proxies, etc., etc. , you'll find out don't want "clear [the] browser cache" in first place…

start here: https://docs.djangoproject.com/en/1.11/topics/cache/#downstream-caches


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -