English 中文(简体)
using using
原标题:Control cache when using jQuery

在使用j Query(特别在jquerymobile)时,保存有关该装置本身的一些数据,而不是每次重载该装置(例如新闻)。 因此,我想利用在阿贾克斯海滩控制下建造的建筑。 但问题是,我无法确定如何控制储存内容的时间。 我在客户方面找不到任何答案,并去做像PHP-Headers那样的使用。

Cache-Control: max-age=3600, must-revalidate

这种做法是不是好的,还是应该(并且能够)在客户方面进行? 如果客户方面,是否有任何人了解显示该机制的良好法典?

最佳回答

服务器的一方是控制海滩的地方。 您不需要将逻辑放在实验室内,也可以将它放在某些档案类型或目录上。

http://www.ibm.com/developerworks/opensource/library/os-php-varnish/index.html”rel=“nofollow” 将PHP应用量与Valnish相加,其主要重点是在项目内实施Valnish,但它也解释了切身边切除过程,只是读到“海滩控制头盔”部分。

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签