FLUID-4738: fluid.fetchResources forces all cached resources (per page) to be not cached (per session)

Metadata

Source
FLUID-4738
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Antranig Basman
Created
2012-08-02T22:19:25.195-0400
Updated
2021-08-08T13:53:06.698-0400
Versions
  1. 1.5
  2. 2.0
  3. 3.0
Fixed Versions
  1. 4.0
Component
  1. Framework

Description

Some old code within FluidRequests.js patches any AJAX request which is issued with the "forceCache" option to be forwarded to jQuery with no caching. The relevant line is FluidRequests.js line 175:

options.cache = false; // TODO: Getting weird "not modified" issues on Firefox

This apparently perverse behaviour was required as the result of a bug in the Firefox of the day (One of the 3.5x series) which caused a "not modified" response from the server (ordinarily a beneficial result implying that the browser's cached version should be used) resulting in an empty document received at the client. So much water has flown under the bridge since then and 3.5x is so far from being supported that we should be able to safely remove this facility without problems - but will require significant investment in cross-browser testing since naturally unit tests can't be supplied to verify this behaviour.

Comments

  • Antranig Basman commented 2021-08-08T13:53:06.694-0400

    This issue was resolved when the old-style FluidRequests.js was rewritten into ResourceLoader.js for Infusion 4.x