服务器 Gind.cn

服务器问题集锦,包括 Linux(Ubuntu, Centos,Debian等)和Windows Server服务器

不一致的caching和过期头(杂注:nocache)

我试图让我的Apache服务器(v2.4.7)响应由浏览器和像Google这样的蜘蛛发送的If-Modified-Since头。 我在Google网站pipe理员的build议中发现了这一点。 我直到昨天才知道这一点,也不知道Apache没有回应这个头,因此也没有向浏览器或蜘蛛发送Last-Modified头。 我也注意到,从我的服务器的每一个请求发回杂注:nocache 经过大量的阅读和摆弄,我实际上已经在我的主要网站上工作了。 这只是发现php.ini中的php.ini设置调用session.cache_limiter设置为nocache,所以我把它设置为session.cache_limiter = public 重新启动服务器,瞧,该网站是给予正确的标题,它传递了各种If-Modified-Since头testing器。 现在的问题….在我所有的其他15个WordPress的网站,他们仍然发送杂注:nocache标题和主要网站上显示的其他caching标题。 所有的站点都有完全相同的configuration在他们的apache .conf文件中所有的站点在他们的.htaccess中都有完全相同的configuration所有站点都运行WordPress 我曾尝试在其他网站上设置和取消设置apache .conf文件中的标题,但他们只是被忽略。 对于我的生活,我错过了一些东西,我不知道在哪里或者什么,整天都在经历.conf和.htaccess和php.ini文件。 有什么是干扰标题,我不知道是什么。 这些是我加载的Apache模块,如果有帮助 Loaded Modules: core_module (static) so_module (static) watchdog_module (static) http_module (static) log_config_module (static) logio_module (static) version_module (static) unixd_module (static) access_compat_module (shared) actions_module (shared) alias_module (shared) auth_basic_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) […]