Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
103 views
in Q2A Core by
Response Headers cache - control : max - age = 1209600 , public , must - revalidate cf - ray : 45bd3671ba56405c - SOF content - encoding : br content - type : text / html ; charset = utf - 8 date : Mon , 17 Sep 2018 17:15:03 GMT expect - ct : max - age - 604800 , report - uri = " https://report-uri.cloudflare.com/cdn-cgi/beaco n / expect - ct " expires : Thu , 19 Nov 1981 08:52:00 GMT pragma : no - cache server : cloudflare set - cookie : qa_key - bg4cfsrqbar3bcyf7r5qk2pkaxp94piq ; expires - Wed , 19 - Sep - 2018 17:15:04 GMT ; path = / status : 200 vary : Accept - Encoding
by
It would be quite helpful if you formatted your question properly.

1 Answer

0 votes
by
edited by

For the caching-related headers you need the following settings in your Apache config (assuming you're actually using Apache as indicated by your comments to a previous question):

Header Set Cache-Control "max-age=1209600, public, must-revalidate"
Header Set Expires "Thu , 19 Nov 1981 08:52:00 GMT"
Header Set Pragma "no-cache"

Note that these are webserver settings, not Q2A settings.

by
And when I use cloudflare, will it look the way I want?
by
edited by
I don't know. I don't use Cloudflare. You should be able to test it quite easily, though.
...