Plone 发送一个链接到缓存但空的 ploneCustom.css
我使用 Apache 后面的 Plone 虚拟托管(没有缓存)在一个 Plone 实例上运行三个 Plone 站点。其中之一,我一直遇到 CSS 缓存问题。
HTML 页面附带一个 css 链接标签
<link rel="stylesheet" type="text/css" media="all" href="http://SITE/portal_css/Sunburst%20Theme/ploneCustom-cachekey5756.css" />
对 HEAD 请求的响应:
$ curl --head 'http://SITE/portal_css/Sunburst%20Theme/ploneCustom-cachekey5756.css'
HTTP/1.1 200 OK
Date: Tue, 14 Jun 2011 06:35:49 GMT
Server: Zope/(2.12.13, python 2.6.5, linux2) ZServer/1.1
Content-Length: 2412
Accept-Ranges: bytes
Expires: Tue, 21 Jun 2011 06:35:49 GMT
Last-Modified: Tue, 14 Jun 2011 06:35:49 GMT
Etag: ts08033349.33
Cache-Control: max-age=604800
Content-Type: text/css;charset=utf-8
但是,响应不包含任何数据,而不是我精心设计的自定义 css:
$ curl 'http://SITE/portal_css/Sunburst%20Theme/ploneCustom-cachekey5756.css'
$
这意味着页面是使用 Plone 默认样式呈现的,这对我的网站用户的部分用户造成了刺激。
手动重新烹饪 portal_css -> 中的 css -> Save
再次创建指向有效 ploneCustom.css 定义的链接一段时间。
这种情况仅在这一个网站上发生,其他两个网站都很好。
为什么会出现这种情况?我该如何解决这个问题?
谢谢, FBMD
I run three Plone sites on a Plone instance using Plone virtual hosting behind Apache with no caching. On one of them, I keep hitting a css caching issue.
The HTML pages are is shipped with a css link tag
<link rel="stylesheet" type="text/css" media="all" href="http://SITE/portal_css/Sunburst%20Theme/ploneCustom-cachekey5756.css" />
Response to a HEAD request:
$ curl --head 'http://SITE/portal_css/Sunburst%20Theme/ploneCustom-cachekey5756.css'
HTTP/1.1 200 OK
Date: Tue, 14 Jun 2011 06:35:49 GMT
Server: Zope/(2.12.13, python 2.6.5, linux2) ZServer/1.1
Content-Length: 2412
Accept-Ranges: bytes
Expires: Tue, 21 Jun 2011 06:35:49 GMT
Last-Modified: Tue, 14 Jun 2011 06:35:49 GMT
Etag: ts08033349.33
Cache-Control: max-age=604800
Content-Type: text/css;charset=utf-8
However, instead of my elaborate custom css that response contains no data:
$ curl 'http://SITE/portal_css/Sunburst%20Theme/ploneCustom-cachekey5756.css'
$
That means the pages are rendered using Plone default style, causing irritations on part of my site users.
Manually re-cooking the css in portal_css -> Save
creates a link to a valid ploneCustom.css definition again, for some time.
This keeps occuring on this one site only, the other two are fine.
Why does this happen? How can I fix this?
Thanks,
fbmd
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://pypi.python.org/pypi/Products.ResourceRegistries/2.0.4
这可以修复它,我问它是否可以安装在 plone 4.0.X 中,但没有得到答案。按照 plone bug tracker 中的票号 #9849 进行操作: http://dev.plone.org/plone/ticket /9849
http://pypi.python.org/pypi/Products.ResourceRegistries/2.0.4
this could fix it, I've asked if it can installed in plone 4.0.X but got no answer. Follow the ticket #9849 in plone bug tracker: http://dev.plone.org/plone/ticket/9849