Hybrid View

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    -1
    lestu is an unknown quantity at this point

      0  

    Default Timestamp at the end of CSS and JS url breaking cache in production?

    Timestamp at the end of CSS and JS url breaking cache in production?


    Hi there

    I have the problem that in production build, in the Chrome network console, the urls for app.css and app.js look like this:
    /test/branches/sencha2/build/production/resources/css/app.css?1352661930189
    /test/branches/sencha2/build/production/app.js?1352661930192

    Why is that? Doesn't that defeat the purpose of the local storage?

    Also, I notice that after a reload, app.js seems not to be loaded again, but app.css is loaded every time.

    Relevant parts from app.json:
    Code:
        "css": [
            {
                "path": "resources/css/app.css",
                "update": "delta"
            }
        ],
    Code:
        "appCache": {
            /**
             * List of items in the CACHE MANIFEST section
             */
            "cache": [
                "index.html",
                "app.js",
                "resources/css/app.css"
            ],
    What am I missing?

    Thanks,
    Lestu

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    -1
    lestu is an unknown quantity at this point

      0  

    Default


    The reason for the CSS file missig in cache was that is was much too big (3.8 M because of many embedded images, where webkit browsers have a max. file size of 2.5 MB that they will put in cache.

    But the question remains: Why are there timestamps on the URLs in production? How can they be turned off?

    Thanks,
    Lestu

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    12
    Vote Rating
    -1
    lestu is an unknown quantity at this point

      0  

    Default


    Hello anybody?

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar