Skip to content

Fix Internet Explorer 404 errors in Retro Mode#957

Open
azayrahmad wants to merge 1 commit into
mainfrom
fix-ie-404-retro-mode-13126038226758041316
Open

Fix Internet Explorer 404 errors in Retro Mode#957
azayrahmad wants to merge 1 commit into
mainfrom
fix-ie-404-retro-mode-13126038226758041316

Conversation

@azayrahmad

Copy link
Copy Markdown
Owner

I investigated why Internet Explorer was frequently showing 404 errors when navigating to websites like google.com or bbc.com in Retro Mode.

I found two primary issues:

  1. Protocol sensitivity: The browser was defaulting to https:// for untyped URLs. Since most of the 1998 web was HTTP-only, the Wayback Machine availability API often failed to find matching snapshots for the HTTPS version of these domains.
  2. Overly strict filtering: The code manually rejected any snapshot that didn't have a timestamp starting with "1998". This caused issues for sites like Google, whose first significant archives appeared in late 1998/early 1999, or for cases where the API returned the "closest" match that wasn't exactly in 1998.

I've updated the logic to default to http:// in Retro Mode and to allow any available snapshot to be loaded (relying on the /web/1998/ URL prefix to tell the Wayback Machine to find the best match for that year).

Verified the fix through simulated API calls and visual inspection in the app.


PR created automatically by Jules for task 13126038226758041316 started by @azayrahmad

Modified `explorer-app.js` to:
1. Default to `http://` when no protocol is specified in Retro Mode, as many historical snapshots are indexed under HTTP.
2. Relax the strict "1998" timestamp check for Wayback Machine snapshots. If a snapshot is available, let the Wayback Machine find the closest one to 1998.

These changes ensure that popular sites like google.com and bbc.com successfully load in the browser.

Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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.

1 participant