WebSite X5Help Center

 
Jeremy H.
Jeremy H.
User

HTML code for expiry if HTTP headers- website optimisation  en

Author: Jeremy H.
Visited 2374, Followers 1, Shared 0  

After running website optimisation I am advised to set an expiry date or a maximum age in the HTTP headers for static resources. I can only find one mention in this that advises to go here;

http://htmldoctor.info/reference/html/meta.html

You will need to add it in Step 1  inthe Expert Tab in Before closing the Head Tag.

OK I found that but  does anyone have a simple prepared HTML code for dummies that would solve this, as I don't understand it, surely this should really be part of the software within X5 ( v10).

Thanks, Jerry

Posted on the
4 ANSWERS - 2 USEFUL - 1 CORRECT
Incomedia
Claudio D.
Incomedia

Hello Jerry,

The only tags you would need are one of these two but adding the expiry date in most cases is not necessary and it can be counterproductive:

<meta http-equiv="Expires" content="0" />

or

<metahttp-equiv="cache-control"content="max-age=0"/>

Both will give you then validation errors since these tags are not accepted by the w3c standard for html5 and all pages, also if seen before needs to be reloaded everytime someone visits them.

Many thanks!


Read more
Posted on the from Claudio D.
Jeremy H.
Jeremy H.
User
Author

Thanks Claudio.


On another subject I just can't find how to post a new problem, there does not seem to be an icon to click non for a new post. I must have found it as I posted last time but I remember almost giving up then !!!

I want to ask why in a text box at the bottom there is always a gap of about 10 lines before the bottom of the box. I want to eliminate this annoying gap, how do I do it ??  ( A bit off topic I know but I can't find the new post button !!!!

tks,  Jerry

Read more
Posted on the from Jeremy H.
JJ. JUAG
JJ. JUAG
User

Fora new post, youclickon the logotop leftorgo to:http://answers.websitex5.com/Now selectthe natureof the postand enter thedisclosures,thereafter,sought, which isalreadyavailable.WithNext buttonbelowthe search resultsyougoto enter the newpost.
GreetingsJJ

Read more
Posted on the from JJ. JUAG
Jeremy H.
Jeremy H.
User
Author

Thanks JJ I knew it was here somewhere !!!

Read more
Posted on the from Jeremy H.