Use Path Links For Linking To Images Or Assets
We can distinguish between absolute, path and relative links.
Absolute Links
Pros:
- increase number of entries in cache, bloats cache
- beneficial for search engine optimization
- allows for dedicated zope "threading" of resources by domain
Cons:
- incompatible with restricted site access
- reduces portability from one website to another
Path Links
Pros:
- minimizes number of entries in cache
- compatible with restricted access on one site
- ensures content portability from one website to another
Cons:
- disadvantageous for zope "threading" resource utilization per domain
- inferior for search engine optimization
Relative Links
Pros:
- minimizes number of entries in cache
- compatible with restricted access on one site
- ensures content portability from one website to another
Cons:
- reduces ability to cache
- inferior for search engine optimization
- disadvantageous for zope "threading" resource utilization per domain
Because we favour security and portability, links to images and other HTML
assets should be path links (ex. /asset/NXD-Screenshort.Some.Thing?format=png),
except links to widely shared public assets (ex. fonts, standard icons) which
can also be absolute links to a Nexedi CDN for optimization purpose.
Good Example:
<a href="/asset/NXD-Screenshort.Some.Thing?format=png">Put titles on links</a>
Bad Examples:
<a href="http://www.erp5.com/documentation/devleper/NXD-Screenshort.Some.Thing?format=png">Put titles on links</a>