最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How can I use cached images in an AJAX response?

programmeradmin1浏览0评论

WP_AJAX includes no-cache headers with its responses. I'm using Ajax to fetch part of a shopping cart, which includes little image thumbnails. On each Ajax request, these are replaced and we can see them window-shading down, which looks wack and wastes bandwidth. Is there a way that those images can be cached without caching the whole response?

I can filter the headers, or adjust the Ajax call, or maybe do something downstream at CloudFlare, but this isn't my area of expertise and could use some help. Thanks!

发布评论

评论列表(0)

  1. 暂无评论