Skip to content

Cache

LOGO

About

HTTP caching is the process of responding to a request from the client without going to the server. Since the incoming request is not forwarded to the backend server, the response time significantly increases. Additionally, it prevents overloading the servers. When caching is performed in vServices created on the TR7 ASP device, files of desired types can be cached according to the created Cache Profile. Features such as maximum object size to be cached, cached file types, and timeout values can be customized.

How to Add?

To add a new Cache Profile, navigate to the Traffic Manager > Profiles > Cache > Add tab from the TR7 ASP web interface.

Interface

Cache Profiles Listing Screen

By following the steps Traffic Manager > Profiles > Cache you can access the list of all Cache Profiles attached to the TR7 ASP device. On this screen, you can perform actions such as adding, editing, and deleting Cache Profiles.

LOGO

Cache Profiles Listing Form

- 1 (Information to be Displayed in the Table)


Select which information will be displayed in the table listing Cache Profiles
The information that can be selected and defaults to being selected includes;

  • Name
  • Cached (HIT) Header Name
  • Caching Rules

- 2 (Add)


Click the Add button to open a form for creating a new Cache Profile.

- 3 (Delete)


Select one or more Cache Profiles and click the Delete button to delete the respective Cache Profiles on the TR7 ASP device.

- 4 (Edit)


Click the Edit button to open the editing screen of the relevant Cache Profile.


Used to search for all expressions in the table.


Used to regexp search for all expressions in the table.


Used to column based search for all expressions in the table.

- 8 (Usage Filter)


Used to filter which vServices all expressions in the table are used in.

- 9 (Page Information)


The information about how many Cache Profiles are in the open list and how many Cache Profiles are listed can be found here. When Cache Profiles are selected for deletion, the information of the selected Cache Profile is also displayed here.

- 10 (Page Size)


Select the maximum number of Cache Profiles to be listed in the open list. You can switch between pages using the arrow icons.

- Preview of the Selected Profile


After following the steps Traffic Manager > Profiles > Cache clicking on any profile will open a window on the right side of the screen with information about the relevant profile.

LOGO

This window also provides information about "Used In". For instance, the "Cache_1" vService cache profile is used in the "www.tr7.com" vService.

By clicking the (x) button in the upper right corner of the open window, the preview can be closed.

Interface

Cache Profile Adding Screen

By following the steps Traffic Manager > Profiles > Cache > Add a new Cache Profile is added to the TR7 ASP device.

LOGO

Adding a Cache Profile Form

- Name


Enter a name for the Cache Profile to be created.

- Cached (HIT) Header Name


Enter the header name when caching is done. It defaults to "TRCACHE".

- Max. Object Size (MB)


Specify the maximum object size to be cached in megabytes (MB).

- Cache Timeout


Select how long the cached content will remain in cache in seconds, minutes, or hours.

As Seconds.

As Minutes.

As Hours.

- Caching Rules


Select under which conditions caching will be performed. By default, caching is performed when the path ends with ".txt .bmp .jpeg .pdf .ps .ttf .jpg .svg .webp .css .svgz .woff .csv .gif .mid .png .swf .woff2 .doc .midi .ppt .tif .xls .docx .pptx .tiff .xlsx .mp4 .flv .swf .mov .wmv .avi .ogg .mkv .mpg" extensions.
Caching can be performed for desired conditional scenarios. For more information about conditions, click here.

Multiple rules can be added by clicking the (+) button on the far right.

LOGO

Multiple conditions can be used with and/or operators.

LOGO LOGO

- Ignore Host Header


When activated, it caches the same files for multiple Backend Services without checking the host header in the next request, providing the cached data to the client.

- Ignore Query


Regardless of the query parameters in the request, it caches the filtered data to cache without caching for each query parameter.

- Ignore Request Headers


In requests, it caches the filtered data for each request without checking the request header.

- Ignore Response Headers


In requests, it caches the filtered data for each request without checking the response header.

- ALL METHODS


Allows all HTTP methods.

- Dynamic Caching


TR7 ASP can perform dynamic caching for requests with the same values ​​according to the parameters in the key. For example, if "Source IP Address" is selected for the Key, the cached data is transmitted to the client as a response for requests with the same client IP address. Alternatively, it can be done in different combinations as follows.

LOGO

- Add


Click the Add button to add the Cache Profile.

Interface

How to Add a Cache Profile to vServices?

Step > 1

First, follow the steps Settings Mode > vServices through the TR7 web interface.

Step > 2

On the screen, right-click on the vService to which the Cache Profile will be added and select Edit or click on the relevant vService and follow the steps "Actions > Edit" from the window that opens on the right to reach the same window.

Step > 3

By selecting Details > Cache in the editing screen of the vService, Cache is activated. When first activated, the Default Cache Profile can be used.

LOGO

Step > 4

To use a profile other than the Default Cache Profile or to add a new profile, click on the arrow next to the profile. Selection can be made from the attached profiles.

LOGO

By clicking the Add button, a new Cache Profile can also be added in the vService screen.

LOGO

Step > 5

Click the Save button to save the changes made, and wait for the vService to be reorganized.