LightningFlowComponents
LightningFlowComponents copied to clipboard
QuickChoice - Image Cacheing Issues
We are experiencing an issue where when we update the fsc_Quickchoice_Images static resources with new images we get a 404 Not Found when the component is generated.
I have found several articles referring to this known issue with Salesforce. I have attempted to rename and retry to no avail.
Salesforce Article https://help.salesforce.com/s/articleView?id=000360000&type=1
Stack Overflow https://salesforce.stackexchange.com/questions/89749/files-in-zipped-static-resource-return-404-errors-after-being-updated
Any suggestions on what to attempt next would be greatly appreciated.
Make sure the file name matches exactly, including the file extension. For example abc.png is different from abc.PNG.
On Wed, Aug 10, 2022 at 10:17 AM Andy H @.***> wrote:
We are experiencing an issue where when we update the fsc_Quickchoice_Images static resources with new images we get a 404 Not Found when the component is generated.
[image: Screen Shot 2022-08-10 at 09 14 05] https://user-images.githubusercontent.com/22582720/183923885-e2eda790-9ccc-48ee-89e1-b5aeb5a65128.png
I have found several articles referring to this known issue with Salesforce. I have attempted to rename and retry to no avail.
Salesforce Article https://help.salesforce.com/s/articleView?id=000360000&type=1
Stack Overflow
https://salesforce.stackexchange.com/questions/89749/files-in-zipped-static-resource-return-404-errors-after-being-updated
Any suggestions on what to attempt next would be greatly appreciated.
— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/issues/1184, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX3K5GUEOKVS4OS4IEDVYO2WLANCNFSM56EWY6OA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Eric, Thanks for the suggestion. I have literally copied and pasted the file names as this has caught me up before. I have even tried coping with the URL and trying different naming schemes to validate that I typed it incorrectly.
URL being requested https://missionalmarketing--c.na209.visual.force.com/resource/1660093506000/fsc_Quickchoice_Images/jake-fagan-icETNYUx65c-unsplash.jpeg
This issue has to result in the folder name. As I was updating the code for dual columns to expand properly I understood that if you enter in a URL that will override where the icon will be stored. For my instance, I created a new static resource uploaded a new zip file, and created a structured URL to load the icons that I needed.
For future self and anyone else. SPELLING is KEY. If you mistype or have a case mismatch the icon will not load. the URL MUST MATCH EXACTLY.
Also for future self and anyone else. The URL is structured with Static Resource Name/Folder Name/Image Name https:/zyz.com/resource/1660682513000/MissionalProductImages/MissionalProductImages/box.png
Again I can't stress enough that you MUST SPELL EVERYTHING correctly to get this to work.