Skip to content

SPFX webpart serving old files versions in Chrome #8803

Closed
@johnnycardy

Description

@johnnycardy

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

No response

Describe the bug / error

This bug seems to have resurfaced: #7664

A previous version of an azure CDN-loaded SPFx script is being used.

When I do a hard refresh (Ctrl+F5), it loads the latest script.
When I do a normal refresh, it loads a cached script.

I can see this on my dev tenant and also one live customer tenant has reported it.

Reloading with Ctrl+F5:

image

Loading normally:

image

Steps to reproduce

  • Update SPFx scripts in Azure CDN
  • Purge azure CDN cache
  • Perform browser refresh
  • Old version of script is shown even after hard refresh is previously performed.

Expected behavior

After a hard refresh is performed, the new script should be persisted in the browser cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:spfxCategory: SharePoint Framework (not extensions related)type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions