1. #1
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    25
    Vote Rating
    4
    Bassanio Kum is on a distinguished road

      0  

    Default How to avoid "_dc" being appended at the end of URL when preview

    How to avoid "_dc" being appended at the end of URL when preview


    I have no any kinds of cache busting enabled. But still have "_dc=xxxx" appended to URL when I clicked PREVIEW making a new Safari window every time. This not happen to older build of Architect 2

  2. #2
    Sencha Premium Member Nxs's Avatar
    Join Date
    Mar 2012
    Posts
    43
    Vote Rating
    2
    Nxs is on a distinguished road

      0  

    Default


    Did you try the following :

    1) In the project inspector, click on Application --> AppLoader
    2) In Config panel, uncheck the property "disableCaching" in "Ext.Loader" section
    3) Save your project
    4) Preview

    Hope it helps

  3. #3
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    25
    Vote Rating
    4
    Bassanio Kum is on a distinguished road

      0  

    Default


    Really thanks, Nxs.

    However, it does not work for me

    I could config it following your instruction but the _dc=<randomNumber> is still appended to the preview URL. Both happens to Windows and Mac version of SA.

    I suspect the disableCaching only affect the script files loading, not the preview URL.

    Did it work on your SA? Mine is 2.1 build 676.

  4. #4
    Sencha Premium Member Nxs's Avatar
    Join Date
    Mar 2012
    Posts
    43
    Vote Rating
    2
    Nxs is on a distinguished road

      0  

    Default


    I have just tried and you're right it doesn't work (same SA build than you).

    I suspect a bug or maybe it's a "normal" behavior with Preview Mode...

    An answer from the Sencha Team should be very appreciated.


    P.S: You can set up a virtual folder with IIS or Apache (or any other..) pointing to your SA project folder.
    Like this you have just to save your project and access the local url via your browser. By this way the _dc param is always removed (as long as you have uncheck the config in SA).

  5. #5
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    25
    Vote Rating
    4
    Bassanio Kum is on a distinguished road

      0  

    Default


    Thanks a lot.

    Yes, I am doing what you said in order to keep the "Inspect element" windows opened for debugging.

    Appending _dc to preview URL is totally meaningless, I won't change app.html under any circumstances

  6. #6
    Sencha Premium Member Nxs's Avatar
    Join Date
    Mar 2012
    Posts
    43
    Vote Rating
    2
    Nxs is on a distinguished road

      0  

    Default


    Of course !

  7. #7
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,907
    Vote Rating
    62
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    Hey guys sorry for the delay. I'm not sure there was ever a way to disable this on the preview url.

    I'll open a ticket and have it follow the setting in project settings label enable cache busting
    Screen Shot 2012-11-26 at 10.29.59 AM.png
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  8. #8
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,907
    Vote Rating
    62
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    bug number DSGNR-2751
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  9. #9
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,907
    Vote Rating
    62
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    I've added a new application settings called 'Cache bust on preview'

    You can set it in the preview dialog or in the app settings.
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  10. #10
    Sencha - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,907
    Vote Rating
    62
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    This feature will be part of 2.2
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

Thread Participants: 2