'How do web developers on Mac OS handle the Safari browser's inability to clear cache?

I like a lot of Safari's features, but the inability to immediately clear javascript and css files from cache is a real productivity drain.

I've tried all the usual META tags to prevent caching... no luck.

For PHP sites, I've taken to loading JS,CSS files directly into the HTML output, but this can require onerous changes when it comes to releasing.

For HTML files, I often rename these files (just changing the query string doesn't seem to work), and the include statements in HTML, but this is a real chore.

This seems to be a well-reported problem, and I'm wondering how other developers are dealing with it?



Solution 1:[1]

Unless I'm mistaken, you can clear the Safari cache after enabling Developer mode in preferences. It's an item in the new dropdown that appears, or you can use the hotkey Command + Option + E

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Frish