caching

offline app using UIWebview for iPad

I am trying to build an iPad app which has one UIWebview. content is in asp.net. Now one of major requirement is that my app should support offline mode. First I tried looking Html5 cache manifest but as per this SO Answer it does not work with UIWebview Then I tried searching around caching mechanism available with UIWebview, I found ...

How can I selectively clear the cache for Sinatra + Nginx + Phusion Passenger?

I have a modular Sinatra app running on nginx with Phusion Passenger. When I alter my app (and in particular, some YAML files which are used to generate pages), I'd like to be able to clear only the parts of my cache that are affected (and leave evertyhing else in /public alone--I know I can just clean out the whole cache, but I was hop...

distributed cache technology

I'm interested in open source messaging and/or distributed cache technologies that satisfy the following requirements. Multiple load-balanced instances of Java web application (probably on Amazon EC2) It's possible for number of instances to be changing over time for scaling. When a request comes with an id FOO, the event is cached i...

$.ajax() call, only on updation

I am reading a xml using $.ajax() request. $.ajax({ type: "GET", async: false, url: "../../../ErrorMessages.xml", dataType: "xml", success: function (xml) { $(xml).find("*[Name='" + Field + "']").each(function () { message = $(this).find(Rule).text(); }); } }); I want to make the call on...

Force refresh of cached data

Is it possible force the browser to fresh the cached CSS? This is not as simple as every request. We have a site that has had stable CSS for a while. However now we need to make some major updates to the CSS. However browser who have cached the CSS will not receive the new CSS for a couple of days causing rendering issues. Is there a way...

How to apply DOP and keep a nice user interface?

Hello coders out there! Currently I want to optimize my 3d engine for consoles a bit. More precisely I want to be more cache friendly and align my structures more data oriented, but also want to keep my nice user interface. For example: bool Init() { // Create a node ISceneNode* pNode = GetSystem()->GetSceneManager()->AddNode("vie...

Hold an object in the memory for a specific time (C# WinForms application)

Hello, What is the best way to hold an object in the memory for a limited period of time, then to free it? For example, I have a Dictionary<int, string> and I want to keep it for 10 minutes only, and after then to dispose it. How to do that? Thanks. ...

How to cache an HTTP POST response?

I would like to create a cacheable HTTP response for a POST request. My actual implementation responses the following for the POST request: HTTP/1.1 201 Created Expires: Sat, 03 Oct 2020 15:33:00 GMT Cache-Control: private,max-age=315360000,no-transform Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Content-Length: 9 ET...

Database Dependent Caching w/ Multiple Databases/SqlServers

I'm working in an environment where a single web application (running in a web-farm) dynamically connects to different SQL Server databases (possibly on different servers) based on user selection (this part is non-negotiable, unless you can gift me $1,000,000 and/or some kind of time altering device). I'd like to cache some of the commo...

Suggestions for caching a dataset

I'd like to perform the following: 1) Open a dataset (using TMSQuery, SDAC DevArt component) 2) caching the content to disk (imagine a list of cutsomers) 3) the next time I need to Open the dataset I will first populate it with cached data, then I will just Refresh it by calling TMSQuery.RefreshQuick method. In this way I plan to ob...

Hiber cache : Cache all fixed data permanently

I have few tables like Country,state city which has static data. User do not enter any data in this data. I create pojo for Country, State, City. There are few pojo which has mapping with static data. My requirement is that whenever any request comes to Hibernate for Country (21), it do not hit database but return data from cache . Is th...

Google Sitemap HttpHandler cacheing

I have a HttpHandler that generates a Google sitemap based on my asp.net web.sitemap. Fairly standard stuff. Except that it does some fairly heavy database work to auto-generate additional urls for Ajax tabs within pages. All this means our DB gets hit fairly heavily if the bot hits sitemap.axd. What we need, of course, is output cachi...

dotnet System.Web.Caching.Cache vs System.Runtime.Caching.MemoryCache

I've got a class that needs to store data in a cache. Originally I used it in an asp.net application so I used System.Web.Caching.Cache. Now I need to use it in a Windows Service. Now, as I understand it, I should not use the asp.net cache in a not asp.net application, so I was looking into MemoryCache. The problem is that they are not...

Getting javascript libraries from Google / Microsoft CDNs through SSL

Hi, I'm getting a couple of libraries from Google / Microsoft CDNs. ONLY one page on the system uses SSL but since I'm referencing libraries on the master page I'm getting the javascript libraries using the SSL so the single page that actually requires it doesn't throw security errors because accessing unsafe resources. I've read tha...

EntLib Caching and SQLite

Hi there I'm trying to get the Microsoft EntLib Caching Block (5.0) working with a SQLite Database and are facing some problems: When I configured the Caching Block for the MS SQL Database I had to run a sql script which created the db and some stored procedures. But I can not find any information on how to create those procedures and ...

rails caching problem with css

Hi, I have two different css files... style.css and style_main.css both are used separately in different layouts for the same application. In development mode everything works fine, but when in production mode, caching happens and both css files are loaded as all.css?xxxxxxx but unfortunately all.css is made from style.css and does not...

jQuery ui - autocomplete from XML cache xml document

I've implemented an autocomplete using an XML source. It takes ~4 seconds to download this XML document from the server. Can someone point me in the right direction on how I could cache that document so that the next time the user visits the site they wont need to download it again unless it's changed. Thanks ...

Force IE to get a page

I've tried numerous ways to get IE8 to reload a page but failed. IE just keeps using it's internal cache without asking the webserver for it. I'm sending the following headers from my webserver: Response.Add(new StringHeader("Expires", DateTime.UtcNow.AddYears(-1).ToString("r"))); Response.Add(new StringHeader("Cache-Control", "no-stor...

html5 offline caching with php driven sites

I have a simple php driven website running and I'm trying to figure out how it treats php pages. Some of my php documents are routing logic and some just includes for individual pages. How do i go about making this work offline? What I though was that I'd have to re-create the routing logic in javascript. Is that my only option? In that...

Cache css/js from PHP processor

I've built a php processor to process all my css and js files. The .htaccess rewrites the css and js files to point to the processor. The processor gets the contents of the css/js file, processes it and then outputs to the browser. For some reason the css and js files refuse to cache? I've set the "Expires" and "Cache-Control" headers...