Translation Proxy Documentation
latest
  • Introduction
  • Getting started
  • The Dashboard 2.0
    • Introduction - Project overview
    • Pages list
    • Crawl
    • Content
    • Snapshot
    • Settings
      • Advanced settings
      • Translation memory
      • Auto pre-translate
      • Alarm
      • Audit log
      • Sharing settings
      • JSON/JS/XML processing
      • Path prefix overrides
      • Default Charset
      • Cache and Cookie Overrides
        • Overview
        • Parameters
      • Content Type
      • Search and Replace
      • JSON Path
      • Special Formats
      • Extractor
      • Inject JavaScript or CSS
      • Project statistics
    • Page modifiers
    • Publish
    • Third party integrations
    • Workbench
  • Account settings
  • The Workbench
  • Maintenance
  • Cookbook
  • Technical Reference
  • Troubleshooting & Support
  • FAQ
  • Glossary
Translation Proxy Documentation
  • Docs »
  • The Dashboard 2.0 »
  • Cache and Cookie Overrides

Cache and Cookie Overrides¶

Overview¶

This override allows you to declare the Cache-Control and max-age headers for a prefix or URL and optionally clear the cookies.

../../_images/path_settings_unsaved_changes.pngAn example of a typical cache override (/wp-content)

The path seen in the screenshot above is a typical use case: it ensures that resources on the /wp-content prefix, associated with WordPress sites, can be cached for 24 hours.

Setting cache-control: public, max-age=86400 on a URL/prefix in this way broadcasts to the network that the resource(s) there can be publicly cached. Depending on the location of the caching node and the pathway of the request, the content will be served from caches instead of going through the proxy pipeline.

This is beneficial for both speed and cost reasons. What is otherwise tolerable server load on the original site might be unnecessary page view cost overhead over the proxy (with speed overhead not being much of a concern). We provide this capability as a useful cost optimization strategy.

Important! Do NOT add overly general paths or too large max-age values without considering the effects! Please read through our description of the issue before using the feature.

Only one cache & cookie override may be present on each path or prefix.

Parameters¶

  • Cache Override: One of Private, Public, or Ignore
    • Private: sets cache-control: private, preventing caching at all
    • Public: sets cache-control: public, allowing caching
    • Ignore: leaves the header as-is, without modifying the directive
  • Max age: the maximum age of a cached resource, in seconds.
  • Cookie override: preserve or clear the set-cookie headers - may improve caching, but break functionality!
Next Previous

© Copyright 2016. Revision 6cc934a3.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
master
latest
page-deletion-details
crest-reword
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.