Skip to main content
1-Visitor
June 9, 2014
Question

Using relative links and getting &__rnd= trash parameters send trougth the url.

  • June 9, 2014
  • 1 reply
  • 909 views

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



All is good but the end parameters.



    1 reply

    5-Regular Member
    June 9, 2014

    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



    1-Visitor
    June 9, 2014

    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.