Caching Mode Setting - ArvanCloud

ArvanCloud Blog

Read more about ArvanCloud news,
updates, products and services in ArvanCloud weblog.

Caching Mode Setting

19 Aug 2019

Your website data will be stored at ArvanCloud for a specific period of time. So, all the requests  that are sent from the users to your server will be responded by ArvanCloud. As a result of this process, your used bandwidth and the load on your server is significantly decreased and besides benefiting from higher security, speed, and efficiency, your costs will be meaningfully reduced as well.

In this article we will ty to present you with more technical descriptions about the concept of “caching”.

Caching Mode

First you can indicate what type of files can be stored in ArvanCloud. You can indicate 4 different levels for this purpose.

Deactivate Mode

In this mode, ArvanCloud just transfers your files and is in charge of optimizing and rewriting the data and making your site secure, without making efforts to store the data. This option is not recommended at all.

Basic Mode

In this mode, the data inside the Query String will be devoid of any credit and it won’t be implemented. For example, if there are addresses such as http://arvancloud.com/news.php?id=10 on your website, this mode wouldn’t be a good option for you because in all requests only the http://arvancloud.com/test.php  address is considered, and as a result, different pieces of data will not be stored equally. Many web developers show the data to the users which have no effect on the outcome, using URL rewriting method. For those types of websites this mode can be very useful. For example, imagine that in the above example this address is used: http://arvancloud.com/news/10

Professional Mode

This mode is the safest and the most recommended mode by ArvanCloud. In this mode, all the available data in URL will be considered for storage in ArvanCloud. Even in cases that different data is shown to different segments of users, it is possible to indicate the name  of the user and a username in the URL. For example : Http://arvancloud.com/users/100/news.php http://arvancloud.com/news.php?news_id=10&user_id=100

Advanced Mode

This mode is one the most most unique and extraordinary modes for enterprises. In this mode, several versions of th data in the cookie will be considered for storage. For example, instead of using the name of the user or the username in URL, it can be stored in a cookie of each user with any name (for example USER_ID). By indicating the name of this variable, ArvanCloud will be able to detect and store different versions of data using that name. In modes that different versions of user data are stored, you should consider that a huge volume will be dedicated in ArvanCloud for data storage.

Storage Duration

One of the important questions here is the fact that how long the data is stored in ArvanCloud. For this reason, ArvanCloud presents you with various advanced settings, but you should also spend some time learning.

Expiration date of Cached Data

HTTP Headers of the Cache-Control are designed to send data to edge servers and in order to authentication of file storage. The most important attribute in this part is max-ages that indicates how long this file will be valid. ArvanCloud respects the sent data from your website by default. But you can easily allow ArvanCloud to rewrite these amounts and store the files for a different duration of time.

Cached Data in the Browser

As you know, your website information is also cached in the user’s browser, and of course this can be changed by using CTRL + F5. (Command + R ) The duration of validity of stored files in the browser cache is stored in a relevant HTTP header. In this mode, ArvanCloud also respects the input data by your website, by default, yet it also allows you to modify it as well.

Permanent Access

When your website goes offline or becomes out of reach for any reason, your users normally won’t be able to visit your website. Access to a version means the last version that your website was reachable and is being maintained by ArvanCloud in an online and a stable mode. During the time that your website is offline or out of reach, ArvanCloud will show the last stable state of your website ,when was online, to the users. During this time a message will be displayed to the users, which indicates that the website is out of reach and the most recent stable version of it is being displayed. As soon as the server is back to normal and stable mode, ArvanCloud immediately redirects the users to the real time and online version of the website.

If this feature is deactivated and ArvanCloud has no information about the out of reach website, a message is displayed to the user that shows the website is offline and there is no Cache in order to view the website.

Developer Mode

When developers are changing the data such as images or Java Script codes or their website’s CSS, by activating developer mode, they can quickly view their implemented changes on the website. Activating developer mode helps the developers to work easily, prevents data caching, and deactivates the performance setting.

Advanced Mode

As it was explained earlier, the maximum time that files are stored in a server, is the time indicated in “max-age” in setting. In this setting mode, it is possible to define a shorter time for requests that have a different HTTPS Status Code.

Pages that are successfully uploaded

207, 206, 202, 200 Codes

Not Found Pages

404 Code

Forbidden Pages

403 Code

Pages which their address has changed.

301 – 302 Codes

دیدگاه شما