'Cache html file in browsers not working and do not job

I use following apache code to cahce staic files like css:

 <FilesMatch "\.(css|js)$">
     Header set Cache-Control " public, max-age=3600, no-transform, immutable "
 </FilesMatch>

its work grate but when adding this code browsers fail to do the cache html:

  <FilesMatch "\.(html)$">
     Header set Cache-Control " public, max-age=90 "
     Header set expires " Tue, 01 Jan 2050 1:00:00 GMT"
 </FilesMatch> 

I even tried to use "must-revalidate" to use the cache if the content had not changed This attempt was also in vain

  <FilesMatch "\.(html)$">
     Header set Cache-Control " public, max-age=90, must-revalidate "
     Header set expires " Tue, 01 Jan 2050 1:00:00 GMT"
 </FilesMatch> 

This image shows that the css file is cached well, but the html file is downloaded completely from the beginning(3.3kb), even after revalidate:  chrome and firefox

Nobody has any idea to hold html files for 90 seconds?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source