class NoCache(object):

    def process_response(self, request, response):
        """
        set the "Cache-Control" header to "must-revalidate, no-cache"
        """
if request.path.startswith('/static/'):
    response['Cache-Control'] = 'must-revalidate, no-cache'
return response
Turn off caching of static files in Django development server