Public Lightning Community Page Pack Static Resource Cache Control

  • 1
  • Question
  • Updated 6 months ago
  • Answered
Hello folks,

One thing I've noticed using a public Lightning Community is that whenever you save a Skuid page and it updates the page pack static resource it overwrites the Cache Control to Private. We have to set this to 'Public' to get the Skuid page to load in a public Community. It'd be cool if Skuid could provide a setting to make the page pack public rather than private.

Cheers!

Louis
Photo of Louis Skelton

Louis Skelton

  • 4,786 Points 4k badge 2x thumb

Posted 6 months ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,004 Points 20k badge 2x thumb
Louis, the cache control on Page Packs has nothing to do with whether a Skuid Page is visible in a public Lightning Community. Page Packs have no effect on how Skuid works at runtime --- they are purely a vehicle for moving Skuid Pages between different Salesforce Orgs, e.g. between Sandbox and Prod. 

If you want a Skuid Page to be visible in a public Lightning Community or a public Force.com Site, you need to go to the Skuid Page Composer for that Page, click "Share", and then add "Read-Only" access to the page for the Salesforce User(s) associated with the public Lightning Community/Force.com Site. Also you will need to ensure that these Public Site User(s) have the "Skuid Page Viewer" Permission Set assigned / or have the corresponding permissions on their Profile.
Photo of Louis Skelton

Louis Skelton

  • 4,786 Points 4k badge 2x thumb
Ah, so sorry Zach - I meant Support File rather than Page Pack - I get those mixed up. We have to set the cache control of the Support File to public.
Photo of Louis Skelton

Louis Skelton

  • 4,786 Points 4k badge 2x thumb
So - we have a bunch of javascript on one of the pages which gets pulled into the Support File - unless that support file is public the page doesn't render in the Lightning Community. Will the Page sharing you mentioned work to fix that?