Acceleration
If you enable HTML caching, your website will be temporarily cached in smoxy. As soon as the website is accessed again, the cached version of the HTML page is delivered directly by smoxy. This results in faster page load times and an overall smoother user experience.
The Minify options can only be used in conjunction with an active HTML cache.
Settings
Cache Key
Determines which hash the cache file is created with. The cache key is later used to identify the cache of a request. By default, the cache key is generated by the hash composed of host
, uri
and cookie_language:0
. Adding :0
can be used to set a default value that will be used if the request does not contain a cookie
named language
.
Example
The URL example.com/myresource
always generates the same hash due to the combination of the values example.com
, /myresource
and the default value 0
of the language
cookie.
Personal Cache Key
Determines which hash is used to create the personalized cache file.
Cache Key Whitelist
For your marketing campaigns, it is crucial that the cache continues to be used even when you send individual links to your customers. For example, by defining utm_campaign
, the URL example.com/myresource?utm_campaign=ABC
is recognized by the cache key in the same way as the URL example.com/myresource
.
Cache Control
The Cache-Control HTTP header is a field in HTTP messages that contains directives to control the behavior of caching in browsers and other caches. These directives can be contained in requests and responses and influence how resources are to be cached.
If the option is active, smoxy respects the "cache-control" header of the Origin. If this header contains the following values, smoxy bypasses the cache.
private
no-cache
no-store
Minify HTML
Compresses HTML files by removing unnecessary paragraphs and spaces, reducing the size of the HTML document sent to your customers.
Minify JS
Compresses JavaScript files by removing unnecessary paragraphs and spaces, reducing the size of the JavaScript document sent to your customers.
Minify Inline JS
Compresses JavaScript snippets in HTML files by removing unnecessary paragraphs and spaces.
Minify CSS
Compresses CSS files by removing unnecessary paragraphs and spaces, reducing the size of the CSS document sent to your customers.
Minify Inline CSS
Compresses CSS snippets in HTML files by removing unnecessary paragraphs and spaces.
Last updated