PDA

View Full Version : Ext JS 4.2.3 are not cached by browser



agarberi
27 Feb 2015, 6:29 AM
When you use Ext JS 4.2.3 in Fiddle, the JS and CSS files are not cached, so every time you click "Play", you have to download all Ext JS library and theme ( about 4 MB ) again and again.
This makes the testing very slow.

It has this header which prevents caching:
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

The same is with Ext JS 5.1.1 Nightly while other versions seem to be cached.
Tests done:

4.1.1 is cached (it comes from extjs.cachefly.net)
4.2.3 is NOT cached (it comes from fiddle.sencha.com)
4.2.4 Nightly is NOT cached (it comes from fiddle.sencha.com)
5.1.0 is cached (it comes from extjs.cachefly.net)
5.1.1 Nightly is NOT cached (it comes from fiddle.sencha.com)
Could you make all of them cacheable, please?

Greendrake
20 Aug 2015, 11:31 PM
+1

(Though I appreciate that sitting on ADSL in rural New Zealand should be considered my problem, not Sencha's :D)

Anyway, example:

https://fiddle.sencha.com/premium/ext/4.2.3/ext-all-debug.js



Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:keep-alive
Content-Type:application/javascript
Date:Fri, 21 Aug 2015 07:25:43 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Pragma:no-cache
Server:nginx
Transfer-Encoding:chunked
X-Powered-By:PHP/5.3.5-1ubuntu7.11

agarberi
7 Sep 2015, 6:39 AM
When you open a bug-report, you are asked to add a "Fiddle" that demostrates it, but with this problem, you are making very difficult to develop something on your Fiddle (it takes minutes every time you click on "Run").

mitchellsimoens
16 Sep 2015, 5:22 AM
Unfortunately the current way that we have old support only releases and nightlies have to be piped through PHP code via curl. This is due to permission checking. We are changing our infrastructure in regards to support only releases and nightlies along with a new version of fiddle that will hopefully help future releases.

agarberi
23 Sep 2015, 12:34 AM
I understand, but I hope you can fix it soon (you are already asking for a login to use new versions).

Note that with Ext JS 6.0.2 (Nightly) it is even worst: it downloads ext-all-debug.js twice for each click on "Run", for a total of 20.4 MB each time!!!
(9 MB x 2 for ext-all-debug.js + other files)
I need more than 2 minutes for each "Run" (that means I cannot use Fiddle any more for Ext JS 6 Nightly).