Our translation proxy may keep cached version of original pages to save traffic, decrease page load time, which potentially can load translated version of the website more quickly than the original version.

Note: This is only for paid plans of GTranslate.

Below you will find description how our system decided to cache a page and how to check the cache status. This will help you to optimize caching for your website and skip some dynamic pages from being cached by GTranslate network.

Note: This article is written for technical persons.

Cache-Control response header

Our caching system respects Cache-Control response header values. For example if you have set Cache-Control: no-cache for some page, our system will not cache the original content and each time a fresh version will be loaded for translation from your original website.

This is helpful if you have a dynamic page and wish to skip caching for it.

Pragma request header

Our caching system respects Pragma request header values. For example if you request a translated page by having Pragma: no-cache request header set, our system will load a fresh copy before translation.

This header is set by your browser when you make a hard refresh in your browser by Ctrl + F5 for Windows/Unix platforms or ⌘ Cmd + ⇧ Shift + R on Mac.

When there is a hard refresh, the fresh version will be cached by our system for future.

This is useful when you update something in your original version and wish the changes to appear instantly on the translated versions. For that you just need to hard refresh the translated page.

gt-no-cache cookie

Our caching system checks for presence of gt-no-cache cookie and if it is set our system loads a fresh copy for translation.

This is useful when a static page can become dynamic upon page login or some other scenario.

Query string with "dynamic" parameter

Our caching system checks for dynamic parameter in query string of a page and when it is set our system loads a fresh copy for translation. For example http://ru.example.com/?dynamic will always be loaded from original website instead of our cache.

This is useful when you do not have option to control other options described above and is present as an alternative for convenience.

GTranslate cache status

We set X-GT-Cache-Status response header for translated pages which provides information about the page cache status. It may have the following values:

  • HIT
  • MISS
  • BYPASS

HIT is set when we load the original content from our cache.
MISS is set when there is no cache available on our side and we load the original content from your website.
BYPASS is set when for some reason we should not load the cached version from our cache and it is loaded from the original website. For example this can happen for hard refresh cases.

Did this answer your question?