【发布时间】:2015-04-26 18:58:28
【问题描述】:
如何在 openshift apache 服务器上设置缓存控制标头?我使用 python 2.7 墨盒(带有 wsgi 和 django),我找不到如何修改 apache 设置。感谢您的帮助!
【问题讨论】:
标签: python apache openshift wsgi
如何在 openshift apache 服务器上设置缓存控制标头?我使用 python 2.7 墨盒(带有 wsgi 和 django),我找不到如何修改 apache 设置。感谢您的帮助!
【问题讨论】:
标签: python apache openshift wsgi
您必须使用 .htaccess 在 OpenShift 上设置缓存控制标头。有关示例缓存控制代码,请参阅 using cache in .htaccess to speed up your site。有关在 OpenShift Python 应用程序存储库中使用 .htaccess 的示例,请查看using basic auth with Python。
【讨论】:
wsgi 或wsgi/projectname 目录中。