caching

Caching web page

Does websites like twitter and facebook ( where the content change often ) use caching ? ...

How can I find where a cached file is being served from?

When I visit a particular site on my laptop through my tethered phone's 3G, I keep getting served a certain broken javascript file. However when I do a force refresh on the page (Ctrl+F5) the most recent copy of the file is served up correctly, so clearly the old javascript file is being cached somewhere (probably on my phone providers p...

PHP Caching (HTML + PHP)

I have made a framework for a project. The project does a medium amount of query requests (but the traffic it will be getting will make it more per user). The views are mixed HTML and PHP. Just looking for the best minimalist ways on how I should go about caching my view files (the controller uses output buffering so maybe I can leverag...

Web service returns 500 error if I add system.runtime.cache with named cache on server

My webservice doesn't render when I add the following to the web.config: <system.runtime.caching> <memoryCache> <namedCaches> <add name="testNamedCache" cacheMemoryLimitMegabytes="0" physicalMemoryLimitPercentage="0" pollingInterval="00:01:00" /> </namedCaches> </memory...

How to use JPA2's @Cacheable instead of Hibernate's @Cache

Typically , I use Hibernate's @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE) to cache an @Entity class , and it works well. In JPA2 , there's another @Cacheable annotation that seems to be the same functionality with Hibernate's @Cache. To make my entity class independent of hibernate's package , I want to give it a try....

Strange Caching issue with ASP.NET MVC using Linq

Using asp.net MVC in c#, I am making a call to a stored procedure using Linq into my SQL Members table. I have no internal caching on the application, already checked to make sure it is turned off. Test case: I have my username set to test1. From the website I change my username to test2. The website still shows test1. I go to Mana...

How can I prevent XMLHttpRequest to cache requests without jQuery?

I have an webapplication which refreshs a table each minute from a xml-file. When I edit the content of the xml-file, the log of the script shows a "304 Not Modified"-Message when it try to get the current file. But the file is edited. If i refresh the xml-file http:/xx.de/test.xml in the browser, the webapplication also shows the edit. ...

HTML: caching problem with textarea+firefox

hi, i have a textarea which contains some encoded html and i'm experiencing weird caching problems with firefox. for the first time i displayed it anything was fine, then i cleared the textarea's content manually. i refreshed that page and since then the textarea remains empty. i already added this to the header: <meta http-equiv="Pr...

ASP.NET Data Caching? Memcache equivalent

Having used PHP on Linux a lot, I'm used to using memcache so that the database doesnt have to be accessed on every single request. What do people use on Windows the achieve this? From the asp.net mvc applications which I've seen, none of them use any sort of cache, they just hit the database on every request? Is this common, and if so, ...

Caching a server side user control in asp.net

Hi, My asp.net app is heavily using user controls and is high load; my concern is that loading user controls for every request (Page.LoadControl(controlPath)) is sub-optimal at best. I was thinking of caching an instance of loaded user control in HttpRuntime, but I don't know how's it going to behave when multiple connections (threads) ...

How, to prevent image cache by browser?

Hi, in my Pylons app i write a script to autogenerate thumbnail, from image geting by url. To generate thumbnail i use PIL(python) W wont to prevent image cache by browser. I can't use after src ?[random_number] because the site, where i past this image must be static. I try to send headers response.headers['Cache-Control'] = 'n...

what techniques should be used to handle objects in asp.net Cache to prevent problems from multiple asp.net worker threads access?

since asp.net contains multiple threads that are executing at the same time. so if 2 threads access an object (simple or complex) that i got from the the asp.net httpcontext Cache. can't this lead to state problems on that object if these 2 theads tried to modify/read it at the same time? so what kind of precautions should i implement? f...

Cache Render of ASP.NET Calendar Control

We display an ASP.NET calendar control and update the color and if the day is enabled with the DayRender event. This process is a bit slow so I'm trying to map out a strategy to cache the results of the all the DayRenders. Basically take a snapshot of the calendar and cache it for X minutes. Where would I hook into the page/control workf...

Caching / moving markup in the DOM for reuse

Bit of a weird one - bound to see some head scratching and wrinkled noses on here. Currently developing this scrollable timeline that has users incrementally loading new modules of HTML via AJAX as they pan / scroll, so before long they can end up with quite a bit of markup on the page. As they "zoom" though (i.e. shift the scale of the...

Cannot overwrite Cache-Control in PHP

I've moved a older site to a new server, and the client has found a very odd behaviour. Very close to the end, I have this code: if (!$this->cache) { header('Expires: '.gmdate('d M Y H:i:s', 946684800).' GMT'); header('Cache-Control: no-cache'); header('Pragma: no-cache'); } Now the odd thing is the Cache-Control line doe...

Does using a CDN increase load on the database or web server?

Does using a CDN increase load on the database or Web server? If yes, then why and how? ...

NSURLConnection cache clearing and reconnecting problem problem

Hi, Given a rails application which communicates with my ipad app. I'm using async connection with http authentication. And i would like to test the credentials if they are ok. The problem is that if i enter the good credentials and after that i'm changing to a wrong one, the connection still accepts. Only refuses when I reopen the appl...

eTag and many versions of page

I have an ASP .NET site with a custom server-side caching system which is a nightmare. I want to use eTags to replace this. Many of the links in the site return different versions of a page depending on session state for the user. An example - mypage.aspx?p=a will return different versions of mypage - equally valid, depending on session...

Low latency distributed cache for Java & C++ Object

[Background] I am working on a java server side process which for the signal analysis / image processing. The main server process will accept requests / input parameters (XML / Image) from users. It will then distribute request / input to multiple processing engines. The processing engines are written in Java. They will perform the JN...

In Memory Caching of Dataset

I am planning to do some in memory caching of my data for operations in my web service. This data would be basically lookup values which do not change frequently. I was planning to get all that data in datasets (multiple tables) and store them till the data does not change on DB side. This is so because some of my data never changes, whe...