allow multiple origins as fallbacks

Created on 13 September 2023, 9 months ago
Updated 3 November 2023, 8 months ago

Problem/Motivation

There might be some cases that during development, some files are only available to a Dev instance and not in the production server

Proposed resolution

Allow multiple origins as fallbacks, in case there's a 404 from the previous origin

✨ Feature request
Status

Closed: works as designed

Version

2.1

Component

Code

Created by

πŸ‡¬πŸ‡·Greece dimitriskr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dimitriskr
  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    But wouldn't your database only be aware of 1 instance?

    Have you tried configuration splits for automatically overriding the settings?

  • πŸ‡¬πŸ‡·Greece dimitriskr

    There would be 1 main instance, the production, as is the scope of this module.
    However, in case the production server returns 404, the module can try getting the file from another domain as a fallback. Config split wouldn't add more URLs as origin servers at an installation

    That case could be useful on local development sites mostly.

    Now that I'm thinking, would it be better to point the module to the dev server, instead of the prod, so that would serve as "fallback"/chain requests? If the file doesn't exist in dev, which is for most cases, it requests it from live and serves it in the local site. And this is where config split can be used

  • Status changed to Closed: works as designed 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thanks for the reply. If that doesn't work and we need to reopen feel free.

Production build 0.69.0 2024