Controlling Behavior
Edgemesh® Server provides various ways to control the way it behaves on your site.
Caching Behavior
Edgemesh® Server provides intelligent detection of paths that are ineligible for edge caching, such as account and cart pages, ensuring optimal caching configurations. However, you may have additional pages within your website that require exclusion from caching. In such cases, Edgemesh® Server offers the flexibility to utilize the em-cache-bypass
meta tag, allowing you to specify which pages should not be cached.
By incorporating the em-cache-bypass meta tag, you can seamlessly inform Edgemesh® Server that a particular page should be excluded from caching. This ensures that the content on those specific pages remains dynamic and up-to-date, catering to personalized user experiences or any other requirements that warrant real-time data.
With Edgemesh® Server's ability to intelligently detect and accommodate both cacheable and non-cacheable pages, you have full control over the caching behavior of your website. Leverage the em-cache-bypass
meta tag to tailor your caching strategy and provide the most relevant and dynamic content to your users, delivering a truly personalized browsing experience.
Element Modifiers
Edgemesh® Server provides element modification controls through the data-em-modify
attribute. Currently, you can remove specific tags from the edge cache while keeping them intact for preview and staging environments. This feature offers flexibility in customizing your caching strategy.
For example, you can use the data-em-modify attribute to remove tags that prevent search engine indexing. By instructing Edgemesh® Server to remove these tags on delivery, you ensure they don't interfere with indexing.
Future updates will introduce additional control options for element modifications, allowing for further customization of your web pages.
Element Optimization Control
With Edgemesh® Server, you have the ability to disable optimization for specific elements using element attributes. This feature is valuable for excluding particular resources that cannot be optimized, without needing to disable the entire feature for your entire site.
By leveraging element attributes, you can fine-tune the optimization process and ensure that specific elements are excluded from being optimized. This targeted approach allows you to maintain control over optimization while addressing the unique requirements of individual resources.
Edgemesh® Server empowers you to optimize your website selectively, optimizing where it matters most and preserving the integrity of elements that require special handling. Take advantage of this granular control to enhance the performance of your site without compromising the elements that require specific treatment.
Disable Un-sharding
To prevent Edgemesh® Server from optimizing or rewriting an HTML element, simply add the data-em-disable
attribute to the specific element. This attribute acts as an instruction to Edgemesh® that the tag should not be altered or optimized in any manner.
The data-em-disable
attribute is commonly used when you need a third-party script to be loaded directly, bypassing any optimizations and passing through to the upstream origin server. By applying this attribute, you ensure that the tag remains unmodified and retains its original behavior.
Take advantage of the data-em-disable
attribute to maintain full control over specific HTML elements that require direct loading or special treatment. This flexibility allows you to integrate third-party scripts seamlessly while benefiting from the other optimization capabilities provided by Edgemesh® Server.
Disable Image Optimization
To prevent Edgemesh® Server from optimizing an image while still benefiting from other optimizations, you can include the data-em-lossless
attribute in the HTML element. By adding this attribute, Edgemesh® will use the original image without applying any additional optimizations, such as compression or resizing. However, it will still perform other optimizations like domain un-sharding, which can improve performance.
This approach is particularly useful for preserving the quality of specific images, such as hero images, where maintaining a high resolution is essential. By allowing the image to remain in its original form, you accept the trade-off of a larger file size, which may slightly impact performance.
Utilize the data-em-lossless
attribute to designate specific images that should be exempt from certain optimizations while benefiting from other performance-enhancing features provided by Edgemesh® Server. This ensures that critical visual elements maintain their intended quality while still enjoying the advantages of other optimization techniques.