Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Ext JS Application Development Blueprints

You're reading from   Ext JS Application Development Blueprints Develop robust and maintainable projects that exceed client expectations using Ext JS

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784395308
Length 340 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Introduction FREE CHAPTER 2. MVC and MVVM 3. Application Structure 4. Sencha Cmd 5. Practical – a CMS Application 6. Practical – Monitoring Dashboard 7. Practical – an E-mail Client 8. Practical – Questionnaire Component 9. A Shopping Application 10. Debugging and Performance 11. Application Testing Index

Breaking and busting

At some point in the development of a project, a developer will inevitably be faced with an obscure error, which is raised from the depths of Ext JS when the application loads. This raises an issue with the way Ext JS sets up its caching mechanism. For example, a normal (if slightly naïve) request for a JavaScript file might look like this:

GET: /assets/javascripts/jquery.min.js

Out of the box, Ext.Loader will pull scripts like this:

GET: /ext/build/ext-all-rtl-debug.js?_dc=1420215165267

It appends a timestamp query variable to the request. This is designed to ensure that we always get the latest version of the script by bypassing browser caching mechanisms.

This can be very useful; however in our situation, it means that any breakpoints set in our code will be removed when the page reloads because Chrome thinks the file is different as the timestamp's different.

How can we resolve this? It turns out to be really simple; just open app.json in the root of an Ext...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime