Problem/Motivation
When stage_file_proxy is installed, local image styles are not created.
Steps to reproduce
On staging server, I create a basic_page node, add an image from media browser, save the page.
The result is a page with a broken image, here's the element:
<picture class="image">
<source srcset="/sites/xyz/files/styles/width_1920px_height_600px/public/media/image/2023-10/rxyz.webp?h=06f6671c&itok=jzILKhSW 1x" media="all and (min-width: 61.25em)" type="image/webp">
<source srcset="/sites/xyz/files/styles/width_1080_height_515/public/media/image/2023-10/xyz.webp?h=06f6671c&itok=nOogRWVJ 1x" media="all and (min-width: 48em)" type="image/webp">
<source srcset="/sites/xyz/files/styles/width_769_height_965/public/media/image/2023-10/xyz.webp?h=06f6671c&itok=xBsmHT3f 1x" media="all and (min-width: 26em)" type="image/webp">
<source srcset="/sites/xyz/files/styles/width_450px_height_460px/public/media/image/2023-10/xyz.webp?h=06f6671c&itok=ZXazdT-x 1x" media="all and (min-width: 25em)" type="image/webp">
<source srcset="/sites/xyz/files/styles/width_1920px_height_600px/public/media/image/2023-10/xyz.jpeg?h=06f6671c&itok=jzILKhSW 1x" media="all and (min-width: 61.25em)" type="image/jpeg">
<source srcset="/sites/xyz/files/styles/width_1080_height_515/public/media/image/2023-10/xyz.jpeg?h=06f6671c&itok=nOogRWVJ 1x" media="all and (min-width: 48em)" type="image/jpeg">
<source srcset="/sites/xyz/files/styles/width_769_height_965/public/media/image/2023-10/xyz.jpeg?h=06f6671c&itok=xBsmHT3f 1x" media="all and (min-width: 26em)" type="image/jpeg">
<source srcset="/sites/xyz/files/styles/width_450px_height_460px/public/media/image/2023-10/xyz.jpeg?h=06f6671c&itok=ZXazdT-x 1x" media="all and (min-width: 25em)" type="image/jpeg">
<img src="/sites/xyz/files/styles/width_450px_height_460px/public/media/image/2023-10/xyz.jpeg?h=06f6671c&itok=ZXazdT-x" alt="Test" typeof="foaf:Image" class="image__img" data-src="/sites/xyz/files/styles/width_450px_height_460px/public/media/image/2023-10/xyz.jpeg?h=06f6671c&amp;itok=ZXazdT-x">
</picture>
None of the files above is generated.
Looking at the network pane in the developer console, I see that there is a request to the production server, but it is a 404 because that image is not in production.
Before considering this an actual issue/bug, I would like to make sure that the expected behavior, when using this module, is to handle local images (uploaded to the staging server) as per default, and try to fetch from production only when they are not available locally.
Also, I would like to know if there are any known issues when combining stage_file_proxy with webp module.
Versions: core 9.5.11, stage_file_proxy 2.1.2, webp 8.x-1.0-rc1
Thanks