nicolauria edited a comment on issue #1986: Uncacheable content, preventing 
rewriting of...
URL: 
https://github.com/apache/incubator-pagespeed-mod/issues/1986#issuecomment-603658976
 
 
   Hello Lofesa,
   
   Thank you for your response. When I say I have enabled caching I mean that I 
added the following code to my '/opt/bitnami/apps/wordpress/conf/htaccess.conf' 
file:
   ```
   # 1 YEAR
   <FilesMatch 
"\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|woff|woff2|ttf|eot)$">
   Header set Cache-Control "max-age=31536000, public"
   </FilesMatch>
   
   # 1 WEEK
   <FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
   Header set Cache-Control "max-age=604800, public"
   </FilesMatch>
   
   # 1 WEEK
   <FilesMatch "\.(txt|xml|js|css)$">
   Header set Cache-Control "max-age=604800, public"
   </FilesMatch>
   ```
   I am not using Varnish. If you visit this url: 
[http://52.40.93.103](http://52.40.93.103) and inspect the network tab and 
select a file you should see that caching headers have been enabled. Any 
additional help you can provide as to why I am encountering this error is 
appreciated.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to