How to disable the Opera 33 cache so that it does not cache the js scripts?

Asked

Viewed 132 times

0

I’m having a lot of problems because besides learning to program, I have Opera caching all javascripts getting in my way because every new function I put in the file, you have to give F5 in the script to load the new version of the same.

Question: Does anyone have any idea how to disable file caching in Opera or has an alternative solution to solve this problem?

1 answer

3


This is not cache, as the browser is not aware of file modification.

If you want the browser to update every file change, set up a setup with livereload type tools with Grunt. As you are starting to learn, setting up these tools can take you a little time, but it is quite simple and an investment of time needed if you wanted to continue messing with javascript, and a massive amount of tutorials are available, like this one for example.

If you’re not interested in digging into this now, you can use sites like JS bin, where every edition of your code, the results panel automatically updates. There are also alternatives like Codepen and Jsfiddle.

  • Guilherme, I am applying these functions in a project that involves HTML/CSS/PHP/AJAX and the only thing I need is for him to reload the page with updated scripts. I can’t waste time on this project. I don’t know how to get the new script loaded every time I access the page.

  • Then you need to use either the livereload desktop or the version with Grunt or Gulp. I recommend Grunt to be more beginner friendly and contain more material teaching how to use it. On the page itself of each of the plugins there is a basic manual of how to start using them. I know no other way than using livereload, but I believe it is the only one available at the moment.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.