126.96.36.199.5. Browser static caching
Attention!Caching settings affect only the resources downloaded by the browser from our server. For resources loaded from third-party services, caching must be configured directly on the side of these services.
Using browser caching can speed up the loading of the site on repeat visits and reduce the number of requests to the server. The bottom line is that when you first visit the site, the server tells the browser how long it needs to store copies of the downloaded static files... When re-accessing the site, the browser already uses the local copies of the files saved in the cache and does not contact the server to get them.
- Openup site settings.
- Against «Caching» specify the storage period for static resources in the client's browser and save the changes:
- Wait approximately 15-30 minutes for the changes to take effect.
Individual caching period by file type
Setting up caching through the control panel sets a single period for all types of static files. If you need to set individual caching periods for certain file types, do the following:
- Take away from list of static files file extensions for which you want to set an individual cache period.
- Write the caching directives in the file .htaccess.
Examples of caching directives: