ETag$

Takes one parameter, Source

Description:

Returns the Moxie.Build ETag value of Source as an eight-character hex value. This is a high-speed but lightweight CRC or checksum.

This same function is used by Moxie.Build's web server to return the ETag HTTP response header value, which browsers return as the If-None-Match request header value for cache control. When Moxie.Build's web server sees a match in the ETag value of the current output and that of the If-Non-Match request header value, the web server does not send the HTTP response body, but instead responds with an HTTP status code of 304 Not Modified.

IMPORTANT: This proprietary ETag function is highly optimized for speed and has been designed to minimize collisions within its small 32 bit output. This function is ideal in most cases for its intended use case of lightweight change detection, but should never be used in a cryptographic or security context.

Example:

[New] Data = "abc"
[New] ETagVal = ETag$ Data