4
If we want to implement a cache control for a particular file type, through the htaccess
we can proceed as follows:
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
But this is a solution for all files of a certain type, in the example above, for Javascript files.
Question
How to apply cache control to a specific file, for example: script.js
?