Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7758203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:17:51+00:00 2026-06-01T13:17:51+00:00

So, I have a script called engine, and after much headbashing and (futile) debugging,

  • 0

So, I have a script called “engine”, and after much headbashing and (futile) debugging, I’ve found out that GC simply isn’t reloading it!

This is how I include it in the webpage (inside the <head> element):

<script type="text/javascript" src="engine.js"></script>

When a put 10 console.log("asdf");‘s at the start of the script, it’s like they aren’t there. When I went to the “resources” tab in the GC console, I saw that no changes are being applied whatsoever to that script! Hlep? Would putting a + "?" + new Date() at the end help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:17:53+00:00Added an answer on June 1, 2026 at 1:17 pm

    The universal solution that works in Chrome, Firefox and IE is cleaning the cache via Ctrl+Shift+Del (on Mac ⌘+Shift+⌫).

    Chrome solution #1

    1. Open Developer Tools (F12 or ⌘+⌥+i, or right-click → Inspect).
    2. Select the Network tab and tick the Disable cache checkbox.

    Chrome disable cache - Network tab

    1. Reload the page.

    ❗️Note: The cache will be disabled only when the devtools window is open.

    Chrome solution #2

    This only makes sense if #1 is not used.

    1. Open Developer Tools.
    2. Click the Settings cogwheel icon in the bottom right corner.
    3. In the dialog that appears, select under the Network subsection the Disable cache checkbox: from now on the cache will be skipped when the devtools window is open. When the devtools windows is closed caching will work as usual.

    Chrome disable cache in devtools settings

    Chrome solution #3: empty cache + hard reload

    1. Open Developer Tools (otherwise the menu in the next step won’t show).
    2. Click and hold down the Refresh button, and then select from the dropdown Empty Cache and Hard Reload.

    Chrome Hard Refresh and Cache Reset

    Modifying javascript code

    A browser-agnostic solution which could be used for debugging is to append in your server-side code a randomly-generated version string as a query parameter, i.e. call your script as:

    <script type="text/javascript" src="myscript.js?ver=12345"></script>

    This trick will force the browser to reload the script when the value of the ver parameter changes. If you make ajax requests then you can append "?ver=" + new Date().getTime() to your URL.

    NOTE: Don’t forget to remove the parameter when you are finished debugging because in production you most likely do want the scripts to be cached. It is a common practice though to generate a new timestamp on each new build — this can be used in production, and will ensure that after a new deployment the clients will always get the updated scripts.


    Unlike all the above solutions this one will work even when you have some sort of caching (e.g. redis, memcached, varnish) or CDN (e.g. akamai, cloudflare, cloudfront, etc) between the client and the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script in Bash called Script.sh that needs to know its own
Suppose I have a python script called my_parallel_script.py that involves using multiprocessing to parallelize
I have a php script that gets called via an ajax call. Values are
I have a java script function that i have called on body load mousemove()
I have a utility build script that gets called from a variety of project-specific
I have made a script that uses a program called Diascope, its a video
I have a script called jobrunner.py that calls class methods in main.py. See below...
I have a script that is called from a email pipe. So someone emails
In a project, I have a script called make.sh that builds the project and
I have a Perl script called replaceUp: #!/usr/bin/perl search=$1 replace=$2 find . -type f

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.