I don't know if it's happened to someone else, but I have a django application that only shows the styles created in css only when it's in incognito mode, when the browser is in normal mode you can't see the changes created in css.
what would cause the problem? and how can i fix it?
CodePudding user response:
Try to clear your browser cache, I think that should help you.
Steps to clear cache and hard reload on chrome:
1. open the website
2. Inspect the page
3. Right-click on the refresh button near the URL bar
4. Click on 'Empty Cache and Hard Reload'
CodePudding user response:
It may be due to caching
. The incognito
mode is not cached and hence you can see the changes. One of the ways could be is to use version
as a query param in your CSS URL to bluff the browser and ask them to fetch each time you change the number. Like
<link rel="stylesheet" type="text/css" href="/site_media/css/style.css?version=1" />
you can change the number of version after each edit
CodePudding user response:
Sometimes browsers cache your website. But in incognito mode, the browser doesn't cache your history and searches. To remove your cache, follow these steps:
- Right click and inspect
- Hover over the reload button near the url box
- Right click on reload button
- Click on "Empty cache and hard reload"
CodePudding user response:
This is most likely due to Cache. Due to caching, you're seeing an old version of your styles (CSS). In incognito mode, this is not a problem because Chrome uses a fresh cache when you start a session and removes that cache when you end the session. You can solve your problem by clearing your cache.
OR
Disable cache in your browser.