Wednesday, November 20th, 2013

Force Chrome to refresh a page

How to Make Chrome display your new web page content without emptying your cache

I use Dreamweaver for my sites and Chrome as my preferred browser but I came close to throwing Chrome out the window these last few days.

You see, Chrome doesn’t like updating your pages which means that if you’re revamping pages as I have been it is perilously slow in delivering the new content to you. In fact, today I checked out a page I edited 4 days ago and while the text is up to date the images were not.

Trying the regular keyboard shortcuts just didn’t work – any key with F5 such as Shift + F5, Control + F5, the reload button Shift + R etc, etc.. I tried them all and nothing works.

I don’t particularly want to have to empty my cache to see the new content – it’s like throwing out a heap of good stuff just to display a page – it shouldn’t have to be done. This browser should work better!

Turns out it does…

….when you know how!

So here’s 2 ways to force Chrome to refresh a page:

1  Click on the page and press Control + Shift + I to display the Developer Tools.  Now, instead of clicking the button to the left of the address bar – right click it to open the menu. Choose Hard Reload – that should ignore the contents of the cache and reload page content and images from the server. This menu only appears if DevTools are enabled.

If that doesn’t work:-

2  Go to the DevTools panel at the foot of the screen and, in the bottom right corner, locate Settings (the gear icon) and click it.

Now check the  Disable Cache (while DevTools is open) checkbox and reload the page – voila! too easy! Yeah… your page appears.


Leave the panel open while you work.

Close it when you’re done.

There… you knew there was a secret to it – and now you’re in on it, but please, don’t keep it to yourself – spread it around, tweet it, share it!

 

 

Helen Bradley

Monday, December 24th, 2012

Strip tags from code in Dreamweaver CS5 & CS6

Ok, confession time. Some of my websites still use FrontPage 2003 for the code. It isn’t pretty but it is one of those things that work and, if it isn’t broken, I don’t generally fix it.

However today I headed over to helenbradley.com to give it a once over.  The problem was that I had seen in my stats that the PR company for a major software provider had trawled my site recently and when I looked at what they checked out I realized how out of date it all was.  So it was time for an update. Instead of FrontPage I grabbed all  the existing HTML and opened the  pages in Dreamweaver and let out one very big groan. They were full of font tags – nearly every piece of text had a font face, size and color associated with it.

The obvious solution was to make a site wide .css file and put all the formatting in there. Well that is dead easy but what about all the garbage in my code – how to get rid of that? The last thing I wanted to do was to select and delete it all one code at a time.

Turns out that Adobe had already thought of that and there is a command you can select to strip code. I chose Commands > Clean Up HTML and then selected the code to clean up.

As my code had too many Font codes in it I chose to specifically remove all of them too.

One  click and all the mess was gone leaving me with the content stripped of its formatting.

I created some CSS styles for the text formats to use in the external .css file, attached it to each page, applied the styles  to the text and  it was all fixed, tested and up.

Now that site is  officially FrontPage 2003 free and working just fine in  Dreamweaver. I have one more site to bring across and then I can say farewell to FrontPage!

 

 

 

 

Helen Bradley