caching

Problem caching Model instances on a constant in Rails

I am using Single-Table Inheritance (STI) on one of my models for a Rails App and I am having problems storing model objects on a constant. I have isolated the problem into a sample project and submitted it to GitHub: http://github.com/fcoury/rails-sti-caching What I am trying to do is loading a model instance (in this case a Music mode...

Rails - etags vs. page caching (file cache)

What would be some advantages of using etags/stale?/fresh_when? instead of page caching (on a file cache)? Apache automatically handles etags for static files, but even if it didn't, page caching would still be better since the Rails app doesn't even get called. So, in what instances would I use the methods provided by Rails (stale?/fr...

Java application object... where is it stored?

I'm thinking about using the java application object to implement a simple cache, to save a few configuration variables, and a couple of xml with often used info... I'd like to know where is the application data phisically stored (a system file, in memory, db), how can it be configured, and if there's any kind of limitation, like space,...

Independent (ASP).net Object Cache?

I wonder, does there exist something like Velocity, but for internal use? Essentially a .net Object Cache that I'll install at a server and that speaks WCF (or something more appropriate?) with my applications - mainly ASP.net, but possibly WinForms as well. Objects should be persistable if possible, but held in memory most of the time...

Trouble Catching a WebException

The Problem We are occasionally getting a WebException that, as hard as we try we can not seem to catch. This results in an error showing up in the event log on the WebServer. Details We have an ASP.Net application that uses several webservices. One of the webservice methods can take a long time to run. To address this we use cachi...

Disable Page Cache to force page load with browser back button

I have an asp.net website that is using update panels on the page that i cant get to reload from the server. I have this for the disable page cache on the master page. 'Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1)) 'Response.Cache.SetValidUntilExpires(False) 'Response.Cache.SetRevalidation(HttpCacheRevalidation.All...

Expire a page using outputcache varybyparam="*" at a specific time

I've a page that uses <%@ outputcache duration="8640" varybyparam="*" %> The goal is to cache it for up to 24 hours, but I want it to specifically expire at midnight. Anyone know the trick? ...

APC not recommended for production?

I have started having problems with my VPS in the way that it would faill to serve the pages on all the websites. It just showed a blank page, or offered to download the php file ( luckily the code was not in the download file :) ). The server was still running, but this seemed to be a problem with PHP, since i could login into WHM. If...

.htaccess not working - only caching images and not JS or CSS

Duplicate: Why isn’t my javascript & css caching ? I'm noticing that I'm only receiving 304 HTTP codes (cached content) for images but not JavaScript or CSS. My .htaccess file is: Options -Indexes Options +FollowSymLinks # Enable ETag FileETag MTime Size # Set expiration header ExpiresActive on ExpiresDefault "access plus 1 w...

Why isn't my javascript & css caching ?

It's appears ONLY javascript and css are not caching ... but images are caching. I am using Firebug and when I refresh the page, I notice in Firebug a lot of 200 HTTP responses for js/css but am receiving 304 HTTP codes (content not modified) for all of my images. So it appears that my JS and CSS are not caching. Also, when using YSlow...

How to create a lazy-loaded and cached collection in Silverlight/CSLA

I'm creating a Silverlight front end for an existing desktop app written using CSLA. One thing that I'm having trouble with is converting classes like the following: public class SomeCollection : Csla.ReadOnlyListBase<SomeCollection, SomeObject> { private static SomeCollection _list = null; public static SomeCollection GetSomeCo...

JavaScript synchronization options.

Hi, I was wondering whenever exists a solution to perform synchronization in JavaScript code. For example I have the following case: I'm trying to cache some response values from AJAX call, the problem is, that it's possible to perform simultaneously several calls, therefore it leads to race condition in the code. So I'm very curious to ...

Caching from URLs with a query string

The web application I'm working on serves up images with URLs like /image?name=a.gif. Pages are loading slowly partly because browsers are not caching the images. Is there any combination of http headers that will persuade IE to cache the images even though the URL has a query string in it? I'm trying to avoid the browser making any unn...

IE history

Hi there I generate some png charts and excel files using a mysql database. I display the charts as images in my webapplication, but from time to time IE users don;t have acces to the last version of the files because IE keeps showing to them the previous loaded datas(charts and excel files) How to prevent happening that? On the clien...

internet explorer cache location

Where is cache for IE for current user located? ...

How do you prevent the browser from displaying a cached version of a page?

One solution would be to add a QueryString variable to the url that is a random guid, but that seems a little messy. Is there a setting somewhere that will prevent the browser from displaying a cached version of a page? ...

Which distributed cache?

I needed to find a way that two applications can use the same cache, and after some quick research it seems that we will need a distributed cache to achieve this. Further Googling turns up a number of solutions, NCache, SharedCache, Velocity, memcached. This cache will be used for caching webpages in a Microsoft Enviroment using Asp.Ne...

Clear my cache using cmd command=> ipconfig/dnsflush?

If my computer is the web server for multiple live websites, is there any harm if i type ipconfig/dnsflush in my command prompt editor?? I always got this problem. I embed a flash (swf) in a .html file. Whenever I update the swf, the .html file always use the old swf even if i clear my cache and what-so-ever. Or is there any ways to le...

Problem with ASP.NET Caching.

Hi folks, I've got two items in my cache Key: Cat Key: Animal_Vacinations Now, Animal_Vacinations has a key-based cache dependency on Cat. So, if anything changes for the cache item Cat, then the cache item Animal_Vacinations get invalidated. PERFECT :) Ok.. now to the problem. After i create the 2nd cache item (ie. Animal_Vacinat...

Caching strategy for asp.net

I would like to ask is there any way to achieve this functionality: I have an Ajax enabled user web site (tree view on the left side, and content on the right side). When users selects a node on the left side, I need to store the last selected node in database. However the user can change the node quite often (even 5 or 10 times a minut...