1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    353
    Answers
    14
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default Unanswered: Touch 2.1.1 web app not caching anything

    Unanswered: Touch 2.1.1 web app not caching anything


    Is it possible to build for production a ST 2.1.1 web app to run without caching anything ?
    I mean that i want always that the web app refeshes from server (index.html, *.js, etc...)

    ?
    -------------------
    Manel Juàrez

  2. #2
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    71
    Answers
    5
    Vote Rating
    6
    cyee is on a distinguished road

      1  

    Default


    Remove the manifest entry in the index.html

    A brute force attempt is to call localStorage.clear() in your application's launch method. Of course, that will also blow away anything else you're storing in there. But it will force the browser to reload the assets listed in app.json.

  3. #3
    Sencha User
    Join Date
    Feb 2010
    Posts
    353
    Answers
    14
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default


    i put this in index.html

    Code:
    <!DOCTYPE HTML>
    <!--<html manifest="" lang="en-US">-->
    <head>
    build again.

    Tested in iphone IOS 6 after clear safari cache
    Works fine.

    Testes in Android 4 after clear browser cache
    Continues catching something, because if i upload a new version of webapp builded, in android i continue seeing the older version. Refresh browser page and the same older page. It runs only clearing the cache.

    is this normal ?
    -------------------
    Manel Juàrez

  4. #4
    Sencha Premium Member
    Join Date
    May 2011
    Posts
    71
    Answers
    5
    Vote Rating
    6
    cyee is on a distinguished road

      0  

    Default


    That's just the browser caching those assets in its internal cache.

    If you *really* want to reload them every time, use query parameters after each asset name, where the query parameter changes each time the page is loaded. To do this would require some server-side processing of the app.json.

    However, at this point, you'd be using only one feature of the ST2 build process: the code concatentation / minification. If that's all you want, then simply take the app.js that you get as the output of the production build process, and insert that directly into a script tag in your index.html. Then, on the server side, have a bit of php that appends a timestamp as a query parameter to the end of the src URL for that app.js

  5. #5
    Sencha User
    Join Date
    Feb 2010
    Posts
    353
    Answers
    14
    Vote Rating
    4
    maneljn is on a distinguished road

      0  

    Default


    cyee, thanks for your response.

    The main problem is that when i build my app using Sencha Touch 2.1.1 and Sencha command v3.0.0.230 (in windows 7 32 bits), each time that i upload a new version of my production app to the server, when testing in iphone IOS 6, automatically the app asks for refesh the upgraded version, but if i try in android 2.3 or android 4, never was asked and always shows the old version of the app.
    I think this was a bug like this post , and then i think that trying to disconnect caching anything it will solve the problem in all platforms, meanwhile this problem was solved by sencha).
    Also i have tried the patch from Jacky in this thread (http://www.sencha.com/forum/showthre...oduction-build) but this patch repairs the problem in android, but produces the failure in IOS.

    In general, i'm confused about this annoying situation.

    Manel
    -------------------
    Manel Juàrez

  6. #6
    Sencha Premium Member
    Join Date
    Aug 2011
    Location
    Hamburg - Germany
    Posts
    69
    Vote Rating
    1
    isaid is on a distinguished road

      0  

    Default updating from sencha touch 2.1.0 to 2.1.1

    updating from sencha touch 2.1.0 to 2.1.1


    i have the same problem, after updating to 2.1.1 my apk file do not show the new application on android device, it shows only the old version. and we get no answer here..

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi