Skip to content

WV-3750 ignore cache flag#6194

Merged
minniewong merged 7 commits intodevelopfrom
WV-3750-ignore-cache-flag
Nov 13, 2025
Merged

WV-3750 ignore cache flag#6194
minniewong merged 7 commits intodevelopfrom
WV-3750-ignore-cache-flag

Conversation

@PatchesMaps
Copy link
Collaborator

@PatchesMaps PatchesMaps commented Oct 9, 2025

Description

Add flag to ignore cache during WV build

How To Test

Using your preferred node debugger:

  1. git checkout WV-3750-ignore-cache-flag
  2. FETCH_GC=1 tasks/buildOptions.sh -d -f
  3. The output network requests should include the request headers.

Or:

  1. In worldview/tasks/buildOptions.sh change line 26 to export NODE_OPTIONS='--inspect-brk'
  2. Run FETCH_GC=1 tasks/buildOptions.sh -d -f in the terminal
  3. In chrome go to chrome://inspect
  4. You should see a remote target called tasks/../tasks/build-options/getCapabilities.js
  5. Click inspect
  6. Add a breakpoint (click on the line number) on line 95
  7. Click "Resume script execution" or press F8
  8. The script will continue and then stop on line 95
  9. Scroll up in your terminal until you see something along the lines of HTTP 65290: createConnection... it should look something like this:
HTTP 65290: createConnection gibs.earthdata.nasa.gov:443::::::::::::::::::::: [Object: null prototype] {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'https:',
  path: null,
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Cache-Control': 'no-cache no-store',
    Pragma: 'no-cache',
    Expires: '0',
    'User-Agent': 'axios/1.12.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },

PR Submission Checklist

This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • I have added necessary documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • Any dependent changes have been merged and published in downstream modules (if applicable)

Merging

Please use the squash and merge commit method unless each commit in your branch is vital to the commit history of main.

@nasa-gibs/worldview

@minniewong minniewong added this to the v4.79.0 milestone Oct 14, 2025
@PatchesMaps PatchesMaps requested a review from jejeking October 15, 2025 17:47
Copy link
Contributor

@christof-wittreich christof-wittreich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely want to remove the orbit tracks images from this PR

@minniewong minniewong requested a review from ZachTRice November 5, 2025 18:29
@ZachTRice ZachTRice force-pushed the WV-3750-ignore-cache-flag branch from d4a6a94 to 95345b5 Compare November 13, 2025 16:47
@minniewong minniewong self-requested a review November 13, 2025 20:09
@minniewong minniewong merged commit 29d1ffe into develop Nov 13, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants