www.webdeveloper.com
Results 1 to 3 of 3

Thread: I am webdesigner and need help upgrading plugin of web site

  1. #1
    Join Date
    Aug 2013
    Location
    Florianópolis, Santa Catarina
    Posts
    2

    I am webdesigner and need help upgrading plugin of web site

    Hello, I am not a programmer but a webdesigner with some small knowledge in programming so I am facing a problem that may look easy to you experts but to me it's really complicated

    I migrated my website from an international domain ( sitepor500.com ) to a national domain ( sitepor500.com.BR ) and before I imported the jquery localhost using "jquery/jquery.min.js". Everytime I updated my jQuery I downloaded the most recent version from jquery and then renamed it to jquery.min.js

    The problem is that I updated a very old version 1.6 to 1.9. in the national domain but some users are experiencing problems with my website since I use in my new domain the ".on()" method and users with 1.6 cached in their browser do not recognize the on() cause it used to be .live().

    So my question is, how can I tell to that users browser that they should download again the file jquery.min.js and erase their cache? My apache in the old domain used to tell browser to cache de jquery.min.js to 12 months. The problem is that I changed the version inside my file and those browsers are not downloading the new version!

    Thank you all for helping a webdesigner doing the job of a programmer hehe

  2. #2
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,111
    If you can edit the HTML where the script is called, you can simply tie a version to it. That way the browser thinks it's a different file. For example, I'm guessing you have something like this calling the current file:

    Code:
    <script type="text/javascript" src="/jquery/jquery.min.js"></script>
    Simple update it to:
    Code:
    <script type="text/javascript" src="/jquery/jquery.min.js?v080713"></script>
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

  3. #3
    Join Date
    Aug 2013
    Location
    Florianópolis, Santa Catarina
    Posts
    2
    You are right indeed! I just need to add a unique variable name after the script name! I am a webdesigner and have not too much know how in scripting but you solved my problem right away! The browser always request the resource again and again and again. Great! Thank you. It will help me with other web design projects!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles