Hi,
How can I force javascript file to override browser's cache?
Usually I would do e.g.
code<script src="myscript.js?v=1.2"></script>/code
But don't want to edit HTML file manually
Thanks, Benny
Hi,
How can I force javascript file to override browser's cache?
Usually I would do e.g.
code<script src="myscript.js?v=1.2"></script>/code
But don't want to edit HTML file manually
Thanks, Benny
What you suggested above works... and probably the most popular solution. There are probably other ways. Have you tried searching on various JavaScript forums..?
I know it works. Asking if I can do it in Appery w/o editing the HTML manually, Otherwise I'll need to find another trick.
You would need to edit the source files.
Hi Benny,
You can also add JD as External resources or use HTML component.
Thanks Katya,
Good idea! To take it further (extremely maybe...) - Apperty can be a thin launchpad for all my external resources, even HTML....
Then the IDE would be primarily used for easy testing platform and bundling to AppStore.
Am I right?
Benny
Benny,
Yes. You can also add files via Create new - JavaScript
Another idea for you: in Appery IDE, allow me to rename JS/CSS files including file extension.
Currently you allow to rename the file name only, and Appery adds the .js / .css extension. If I could rename the full name, then I could easily append it with e.g. ?v=1.2 and control my caching easily.
I'll share this feature with the team. Thanks.
Thanks Max. Awesome feature IMHO ![]()