Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSumit Kumar
32 Pointscss file is not reloading automatically
Every time i make a change in Css file the browser do not refresh the changes in css i have to manually refresh the stylesheet and then it renders the css on screen.
1 Answer
Brendon Butler
4,254 PointsThere are a few solutions to this.
Bypass Cache Refresh - hard browser refresh, refreshes every bit of your website.
GET Attribute Method - basically all you do is add ?version=1 to the end of your css link in your HTML file. Every time you change your css file, increment the number by 1.
You can also add a "style" element to html and just add your CSS there. At least for testing purposes.