These configuration files usually called. IIS 7 and above uses a file called Web. The Web. This article describes the most common uses of the.
|Published (Last):||13 March 2017|
|PDF File Size:||13.46 Mb|
|ePub File Size:||7.80 Mb|
|Price:||Free* [*Free Regsitration Required]|
More explanation o these settings will come later in this article. This matches the file types to the specific expire time. This streamlines the htaccess code. In the code below, the file types are listed in a row like jpg jpeg png gif js css swf ico woff mp3. Below is an example of the code to use. To specify the specific times for each individual file type, you will want to use the previous code example. The following will explain the Directive types that are used for Cache-Control.
The following table explains the difference between them. Caching directives Enables the Expires headers for the website. ExpiresByType Directive This defines the age of the cache header and the type of file to cache. ExpiresDefault Directive This sets the age of the cache for all documents other than those specified in the ExpiresByType for the site. Caching Directive bases There are 3 base types the access, now, and modification type.
Subscribe to RSS
Save the. How to set different caching times for different file types You can see in the above code that there are time periods like "1 year" or "1 month". These are associated with file types, as an example the above code states that a. If you want to change that and say you want your jpg images cached for a month you would simply replace "1 year" with "1 month".
Leverage browser caching
Die ultimative WordPress .htaccess erstellen