.htaccess、expire headers和WordPress的W3 Total Cache插件
【腾讯云】亏本大甩卖,服务器4核16G 1年370元(带宽12M,系统盘120GB SSD盘,月流量2000GB)!!!!!!
云产品 配置 价格
服务器 1核2G,带宽5M,系统盘50GB SSD盘,月流量500GB 38元/年
MySQL 1核1G 19元/年
服务器 16核32G,带宽18M,系统盘250GB SSD盘,月流量5000GB 1197元/年
点我进入腾讯云,查看更多详情

I currently have the W3 Total Cache plugin installed on my self-hosted WordPress site. The question is in regards to the behavior im experiencing with the plugin itself and its relation to the .htaccess file, which is located one-level up of my WordPress core files. I followed the WordPress Codex on moving the core files in its own sub-directory, outside of my root folder.

In any case, the plugin created a bunch of <ifModule> directives, half of which i dont recognize. Im not sure my expire headers are being respected by my CDN -— which it should. I confirmed this using YSlow and WebPageTest, both showed me that none of the files hosted by my CDN have expire headers, despite adding expire headers for all those file types within the plugins settings.

Does it have to do with the location of my .htaccess file and the WordPress core files? Any help is much appreciated.

#0

After talking with customer support over at my CDN's live chat (small chat window, mind you.. but great support), i sort of accepted an inevitable win-lose scenario to this problem. Since all my static files are hosted with them, i used their cache control override feature to set expiry's for me (known as Over-ride Cache Control Header)

Both me and customer support tried several ways to get around W3 Total Cache's settings for caching, none of them worked. It seemed my expiry header directives in my .htaccess file set by the plugin weren't being respected, but all other directives were working fine.

UPDATE: After much research, i found out that my hosting provider doesn't offer mod_expires on shared hosting, it's only available on Virtual Dedicated Server's.

推荐文章

在虚拟键盘上方自动向上滚动的文本字段

在虚拟键盘上方自动向上滚动的文本字段

推荐文章

如何在qt中加载驱动程序?

如何在qt中加载驱动程序?

推荐文章

在sshj v0.5.0中上载和下载文件时设置文件筛选器

在sshj v0.5.0中上载和下载文件时设置文件筛选器

推荐文章

组织模式html导出

组织模式html导出

推荐文章

如何在iOS4 SDK中显示相机视图(不带视频/图像捕获功能)

如何在iOS4 SDK中显示相机视图(不带视频/图像捕获功能)

推荐文章

丢失internet连接后的ASIHTTPRequest resume请求

丢失internet连接后的ASIHTTPRequest resume请求

推荐文章

如何从MySQLdb连接获取套接字FD

如何从MySQLdb连接获取套接字FD

推荐文章

具有重复键和值的.NET集合?

具有重复键和值的.NET集合?

推荐文章

Windows资源管理器集成应用程序

Windows资源管理器集成应用程序

推荐文章

获取视图的边距

获取视图的边距

推荐文章

在.net中全球化和本地化有什么不同?

在.net中全球化和本地化有什么不同?

推荐文章

如何在ios应用程序中处理不使用应用程序内购买的支付?

如何在ios应用程序中处理不使用应用程序内购买的支付?

推荐文章

IIS上的PHP-拒绝访问错误

IIS上的PHP-拒绝访问错误

推荐文章

地图套件上没有显示谷歌符号

地图套件上没有显示谷歌符号

推荐文章

运行Install python meep错误

运行Install python meep错误

推荐文章

水平视图切换就像在官方Google plus应用程序中一样

水平视图切换就像在官方Google plus应用程序中一样