Using relative links and getting &__rnd= trash parameters send trougth the url.
‎Jun 09, 2014
12:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Jun 09, 2014
12:57 PM
Using relative links and getting &__rnd= trash parameters send trougth the url.
I'm trying to reference a file in the FileRepository and it worked fine but adds this:
&__rnd=0.8384068009909242
I referenced it as: ../../Thingworx/MediaEntities/noUserImage
and the result is: http://192.168.0.99:8080/Thingworx/MediaEntities/noUserImage&__rnd=0.8384068009909242
All is good but the end parameters.
2 REPLIES 2
‎Jun 09, 2014
01:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Jun 09, 2014
01:26 PM
Hi Martin,
That "trash" is a feature! By appending it to the URL, we ensure the browser will not cache the image and the end user will see the latest version of the Media Entity. If you prefer a cleaner URL, you can uncheck the PreventCaching property of the Image widget.
Thanks,
Adam
‎Jun 09, 2014
02:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Jun 09, 2014
02:04 PM
Helo Adam:
Thanks, somehow if you use the prevent caching property in the image widget and set the url source on the fly it may or not work.
Thank you.