[Answer]-Django runserver & Firefox – caching conflict with multiple local sites running separately on same port?

1👍

This thread discusses methods to prevent client side caching of content served by the development server in Django:

Fighting client-side caching in Django

I prefer to simply disable caching in my browser though, seeing that I spend so much time on developing that I don’t want to bother with the hassle of trying to prevent it in my own code.

A simple web search for “how to disable caching in firefox” came up with this:

http://support.mozilla.org/en-US/questions/764993

I’m pretty sure that searching for the same thing for different browsers will also give you expected results.

EDIT:

These guys also seem to go pretty in depth about how to prevent the caching of static files when using the Django development server.

Turn off caching of static files in Django development server

0👍

Just add something like this to /etc/hosts:

127.0.0.1    site1.dev
127.0.0.1    site2.dev

Visit site1.dev:8080, now site1 has its own cache and cookies (session) in the browser.

Leave a comment