Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Safari to preview web pages as I develop them on my local server. I've got 'Disable Caches' checked in the Develop menu. And yet Safari is still working from a cached version of a stylesheet that's linked from the HTML file being displayed.

I can sometimes override this by Option-clicking the reload button in the location bar, but I want to refresh the page automatically when I save the CSS file. At the moment I'm doing it using an AppleScript that's bound to the Save action in my text editor. I could see using Keyboard Maestro instead. But I need some consistent way to force Safari to do a full reload from the keyboard.

share|improve this question
    
Do you have any extensions installed. Had this problem once with Adblock... It messed up one page in particular, thought it was a stylesheet problem too, tried everything... but it was Adblock messing with it. –  unmircea Jan 8 at 22:08

6 Answers 6

There is an option in the menubar Develop->Disable Caches. This is true for Safari 5.1. I'm not sure for the rest.

Screenshot

share|improve this answer
1  
Please read the second sentence of my question again. –  Gabe Jul 28 '11 at 17:06
1  
Oops, I'm sorry :) –  mist Jul 29 '11 at 7:01

CMD+OPTION+E Empties caches so a full "hot key" would be

Then

CMD+R to refresh the page

Tested on Safari 6

share|improve this answer

Hard refresh was removed as a keyboard shortcut in Safari 5. The old command for that was +SHIFT+R

CTRL+F5 May work but I can't test here.

share|improve this answer
    
Yes, that's how to refresh the page, but it doesn't bypass the cache. –  Gabe Sep 9 '10 at 16:02
1  
Control-F5 just selects the location bar, like Command-L. –  Gabe Sep 9 '10 at 16:45
    
Then it's been disabled completely. I found a number of threads complaining about it. There is an extension that I have NOT tested here: twitter.com/siracusa/status/15683201068 that may do what you want. –  JNK Sep 9 '10 at 16:47
    
No, that extension just creates a button in the toolbar (which I guess some people prefer to the icon in the location bar). I also found a lot of threads complaining about it—i was wondering if someone on here had any special knowledge. –  Gabe Sep 9 '10 at 19:37
    
Sorry! :( <15chars> –  JNK Sep 9 '10 at 19:47

Workaround: in the develop menu, select "start debugging javascript" and it must reload the code properly. You can then stop debugging... I know it's not a clean solution and I'm not sure if it works always or in all versions, but it's working for me now.

share|improve this answer

Turn on Private mode and refresh the page. It won't get it from the cache in private mode.

share|improve this answer

Go to Safari's preferences and tick "Show develop menu". In the develop menu, click disable Caches.

share|improve this answer
    
Please read the second sentence of my question. –  Gabe Feb 21 '13 at 11:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.