Project

General

Profile

Meta headers

Added by Ulf Johnsson over 4 years ago

Hi!

I am trying to add/change the default meta-header used when loading pages from my server.

I am fine injecting the meta-headers in the config.xml file, and I have tried adding something like this:

<meta-headers user-agent="*">
  <meta name="stuff" content="noindex" />
</meta-headers>

under the node, but it seems to have no effect? I know the elements are being read by the server since Wt will throw an exception if I remove the name attribute.

What am I missing, why does this not work?

BR, Ulf.


Replies (3)

RE: Meta headers - Added by Roel Standaert over 4 years ago

<meta-headers> should be under the <application-settings> node. The only child nodes that <server> should have are <application-settings> nodes.

RE: Meta headers - Added by Ulf Johnsson over 4 years ago

Aaah of course! That was my problem, or at least one of the problems, the other issue was the user-agent. Simply removing the user agent seems to do the trick.

Thanks for the response!

BR, Ulf.

RE: Meta headers - Added by Roel Standaert over 4 years ago

Ah, yes, the user-agent attribute takes a regular expression, not something with wildcards in it.

    (1-3/3)