[ADDED] [V0.6] Unique JavaScript Url's

  1. #1

    [ADDED] [V0.6] Unique JavaScript Url's

    We added a new feature to how the JavaScript (.js) include files are rendered to help prevent browser caching issues.

    Now the url created for each .js file pulled from the assembly as an embedded resource is suffixed with the Assembly Revision number. The following example demonstrates the old and new urls.

    Example

    // Old
    <script type="text/javascript" src="/extjs/ext-all-js/coolite.axd"></script>
    
    // New
    <script type="text/javascript" src="/extjs/ext-all-js/coolite.axd?19901"></script>
    The key part is the new "?19901".

    The "19901" is the Assembly (.dll) Revision number and will change each time the project is recompiled. With the addition of the new Revision number the browsers will treat the url as a new request and not pull from cache if the Assembly is replaced.

    This should help when deploying new .dll's which might contain updates to the JavaScript files. Previously the url/file might otherwise have been cached by the end users browser.

    This "unique JavaScript url" feature has been added to v0.6.

    Hope this helps.

    Geoffrey McGill
    Founder
  2. #2

    RE: [ADDED] [V0.6] Unique JavaScript Url's

    Good one, I always had troubles when first starting out when all it took was clearing my cache between revisions!

    Cheers,
    Timothy

Similar Threads

  1. Replies: 5
    Last Post: Dec 27, 2012, 10:29 AM
  2. Replies: 12
    Last Post: Jun 04, 2012, 11:18 AM
  3. Replies: 1
    Last Post: Mar 29, 2012, 9:02 PM
  4. [CLOSED] Combobox unique display field issue
    By majestic in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 03, 2012, 3:32 PM
  5. Replies: 1
    Last Post: Jan 27, 2010, 12:19 PM

Posting Permissions