Talk:LlClearPrimMedia

From Second Life Wiki
Revision as of 08:42, 5 May 2024 by Gwyneth Llewelyn (talk | contribs) (→‎Very useful for refreshing a page with the same URL!: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Very useful for refreshing a page with the same URL!

By default, the embedded viewer will notice if the shared media is on the same URL, and, in such a case, for performance reasons, no new page will be reloaded. This also allows things like moving an object with some media on it to inventory, and, when rezzing it again, it will show precisely the same page as before, without doing a reload/refresh (which has a certain non-intentional delay when launching the embedded viewer).

But in many cases, certain pages, due to their nature, may be dynamic — retaining the same URL, but changing the content. In such cases, the only choice is to clear the prim media using this function, and calling the same URL again. LSL will "forget" what page has been loaded before; it's like the "force refresh" button on some browsers, which will override local caches.

Note that, as explained on the page, once the prim media is cleared using this function, you have to set everything up again as before — it's not enough to just change the URL. Everything will be 'forgotten'.

Gwyneth Llewelyn (talk) 09:42, 5 May 2024 (PDT)