I have just noticed something very worrying with the represented path to static resource files in Visualforce pages in Summer '16 boxes (sandbox and dev pre-release checked).
It seems that for some file extensions the path includes a query string appended with an orgId param.
For example I have a VF page like this;
{!URLFOR($Resource.ToddStaticTest, 'static-test/eot.eot')}
{!URLFOR($Resource.ToddStaticTest, 'static-test/woff.woff')}
{!URLFOR($Resource.ToddStaticTest, 'static-test/ttf.ttf')}
{!URLFOR($Resource.ToddStaticTest, 'static-test/svg.svg')}
And the output of the page is something like this.
/resource/1464812981000/ToddStaticTest/static-test/eot.eot?orgId=00DB00000004GGI
/resource/1464812981000/ToddStaticTest/static-test/woff.woff?orgId=00DB00000004GGI
/resource/1464812981000/ToddStaticTest/static-test/ttf.ttf?orgId=00DB00000004GGI
/resource/1464812981000/ToddStaticTest/static-test/svg.svg?orgId=00DB00000004GGI
Note, this does not happen if I have an asset with the extension capitalised. It does also not happen to .png, .css, .html files. Spring '16 (and earlier) boxes did also NOT show this behaviour.
This causes serious app-breaking issues for anyone on iOS (and Desktop Safari, I think) when they're also using a cache mechanism such as appcache.
I can't find any mention of anything like this in the release notes, but would love to know;
- How can I turn this off?
- Which extensions are affected (I have only done limited testing, thus far)?
- What reason is there for this happening?
UPDATE: This behaviour seems to be related to this partner alert and was put in place for files relating to those needed for web fonts. I'm not sure exactly why. It seems a little bit dirty as SVGs can be used for all sorts, not just fonts.
In my case I was able to get around this by giving my assets CAPITAL extensions (such as .SVG).
I am also in the process of raising a case as it seems that non-managed-packaged assets should also be handled as per the partner alert... and also that non-font-face .svg references would also be missed and lead to broken references.