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 trialErik Wells
5,403 PointsCSS not showing up solution
I had a very frustrating couple of minutes where my CSS wasn't showing up regardless of having the code typed correctly. I emptied my browsers cache and WALLA, it's there. So anyone every having issues with code you know is correct not showing up; EMPTY YOUR CACHE.
That is all.
2 Answers
Bradley Weston
Courses Plus Student 360 PointsYou can always use htaccess
caching headers http://davidwalsh.name/html5-boilerplate-htaccess check out the Expires
section.
Also you can append <?php echo time(); ?>
to the href
this is called cache busting. Example:
<html>
<head>
<link href="/my/path.css?<?php echo time(); ?>" rel="stylesheet" type="text/css">
Darrell Osborne
23,146 PointsYes! Thank you! Driving me crazy!