Follow-up: headers + repro for image upload
The app is still intermittently serving old bundles. When index.html references main.0678ca51.js, the CDN sometimes responds with main.4515fd16.js. This mismatch correlates with “Failure to upload image” on campaign submit.
Please confirm:
Full edge purge for wefundwe-crowd.emergent.host and wefundwelive.com, including index.html and Service Worker assets, not just hashed JS.
Set cache policy: index.html Cache-Control: no-store (or max-age=0, must-revalidate), hashed assets public, max-age=31536000, immutable.
Verify the upload endpoint (S3 or storage) CORS allows wefundwe-crowd.emergent.host and returns a JSON body the client expects (imageUrl or url field).
Confirm the live HTML now references and serves main.0678ca51.js (no SW injecting an old precache).
Repro (client):
Campaign form → choose JPG under 900 KB → Submit → “Failure to upload image”.
Console often shows 404/403 or CORS on the upload PUT/POST.
Please fix: ensure the latest bundle is served and that the upload route, CORS, and response schema are in sync.