Why is there a lot of inconsistence between one web path and another when the entire site is fully live to the public.
For example many of our clients are facing this issue.
They have got two folder to upload files. One is called the internal and the other is called external
In the internal folder all the files are correctly displaying the webpath address for any types of files which is uploaded in this folder for example pdf,doc, gif, jpg but in the
I have attached two images. The image with the correct webpath is the one the clients want to see in all browsers when the public views the website not the incorrect url one. Is this a bug or glitch in the software. Thank you
[quote]I have attached two images. The image with the correct webpath is the one the clients want to see in all browsers when the public views the website not the incorrect url one. Is this a bug or glitch in the software.
[right][post=“13904”]<{POST_SNAPBACK}>[/post][/right][/quote]
Its not a bug or glitch – its now Matrix works. When a file asset is Live, with Public Read permissions, it gets a /__data/assets/… based URL. This is to allow the webserver to serve the file directly without requiring Matrix to do any processing. This is significantly faster and also permits your Squid caching proxy to cache the file.
The “human-readable” URL is generated by Matrix for file assets that are either not Live or do not have Public Read permission applied. In this case, Matrix serves the file, so that it can check that the user has the appropriate permission. However, this requires processing to deliver the file and does not permit Squid to cache the file.
You can change the behaviour of Matrix by toggling the “Allow Unrestricted” option on the Details screen of the file. If you turn this off, the file will always have its human-readable URL and never get a /__data/assets URL. This is not recommended for performance reasons. You really should let Matrix use unrestricted URLs so that Apache/Squid can serve the file. This is much, much better.
[quote]Its not a bug or glitch – its now Matrix works. When a file asset is Live, with Public Read permissions, it gets a /__data/assets/… based URL. This is to allow the webserver to serve the file directly without requiring Matrix to do any processing. This is significantly faster and also permits your Squid caching proxy to cache the file.
The “human-readable” URL is generated by Matrix for file assets that are either not Live or do not have Public Read permission applied. In this case, Matrix serves the file, so that it can check that the user has the appropriate permission. However, this requires processing to deliver the file and does not permit Squid to cache the file.
You can change the behaviour of Matrix by toggling the “Allow Unrestricted” option on the Details screen of the file. If you turn this off, the file will always have its human-readable URL and never get a /__data/assets URL. This is not recommended for performance reasons. You really should let Matrix use unrestricted URLs so that Apache/Squid can serve the file. This is much, much better.