use options to determin x robots tag
This commit is contained in:
parent
4fb3fa54ec
commit
040997b322
1 changed files with 3 additions and 1 deletions
|
@ -197,7 +197,9 @@ class ResourceView(BaseView):
|
|||
context = self.context
|
||||
ct = context.contentType
|
||||
response = self.request.response
|
||||
response.setHeader('X-Robots-Tag', 'noindex, nofollow')
|
||||
if self.typeOptions('x_robots_tag_header', None) is not None:
|
||||
tagVal = ', '.join(self.typeOptions('x_robots_tag_header'))
|
||||
response.setHeader('X-Robots-Tag', tagVal)
|
||||
self.recordAccess('show', target=self.uniqueId)
|
||||
if ct.startswith('image/'):
|
||||
#response.setHeader('Cache-Control', 'public,max-age=86400')
|
||||
|
|
Loading…
Add table
Reference in a new issue