Was wondering a couple of things.
Does http headers cache everything on the page. And if i have some javascript files will it cache them as well for subsequent pages, or is it more complicated then that. Example: If I cache all javascript files on page1.php will the files still be cached on page2.php or does it cache files for page1.p...
I use JBoss AS. I have a long and heavy SQL that run inside the application server. I want to cache the results based on input parameters.
I have a few options here:
Use a caching manager and manually putting the results in the cache.
Use a caching manager with loader that will "load" the results into cache when there's no results in ...
Hi there,
Where is the best place to implement caching in a web based app?
At the presentation layer (hope not)?
At the Business Logic Layer?
At the data layer?
I'm going to use something like memcached or MS Velocity under the hood.
I'm just finding myself writing so much code to update the cache here and there in the business lo...
We've got our ETags and expiry headers setup properly and when browsing around the site without posting it is really very snappy. However, after any POST (which is almost invariably followed with a 302) you can see the browser re-request all the images. Is there something that could be causing this? Is there a setting that handles thi...
Lets say you have a fragment of the page which displays the most recent posts, and you expire it in 30 minutes. I'm using Rails here.
<% cache("recent_posts", :expires_in => 30.minutes) do %>
...
<% end %>
Obviously you don't need to do the database lookup to get the most recent posts if the fragment exists, so you should be able to...
To see my problem in action, 1st click this link. Then click this one. Notice how the images are squished? (you may have to click a through the pager to see it).
I believe it's because of the browser cache. Here's the javascript doing the work:
$("#grid_slider").slider({
value: 50,
max: 100,
min: 10,
slide: function(event, ui) {
...
I heard recently that Nginx has added caching to its reverse proxy feature. I looked around but couldn't find much info about it.
I want to set up Nginx as a caching reverse proxy in front of Apache/Django: to have Nginx proxy requests for some (but not all) dynamic pages to Apache, then cache the generated pages and serve subsequent re...
How to clear browser cache with php?
...
Context: .Net 3.5, C#
I'd like to have caching mechanism in my Console application.
Instead of re-inventing the wheel, I'd like to use System.Web.Caching.Cache (and that's a final decision, I can't use other caching framework, don't ask why).
However, it looks like System.Web.Caching.Cache is supposed to run only in a valid HTTP context....
I am serving images through php and having some problems setting it up to respond with 304 headers to save on load time.
Most of the code below I found on php.net. It works, however ALWAYS responds with 200. For some reason the If-Modified-Since header is not being received on any requests even though I am sending the Last-Modified head...
I have been reading Wikipedia's article on K programming language and this is what I saw:
The small size of the interpreter and compact syntax of the language makes it possible for K applications to fit entirely within the level 1 cache of the processor.
I am intrigued. How is it possible to have the whole program in L1 cache? Say,...
Hello,
I have a situation where my (embedded) web server is sending Expires header, but the browser does not seem to respect the header setting, i.e., if I refresh the page, the browser requests the resources that are supposed to be cached. Following are the headers that are getting exchanged:
https://192.168.1.180/scgi-bin/ajax/ajax....
I need to create an web module, with this module i need to fetch the title of some web site, after i will find that title i need to store that in thread safe caching mechanism and i need to save there the 10 lat fetched titles.
Any help please ?
...
max-age=0 implies that the content is considered stale (and must be re-fetched) immediately, which is in effect the same thing as no-cache.
Google has failed to solve this mystery for me :(
...
I often need to implement DAO's for some reference data that doesn't change very often. I sometimes cache this in collection field on the DAO - so that it is only loaded once and explicitly updated when required.
However this brings in many concurrency issues - what if another thread attempts to access the data while it is loading or b...
Hi,
this question is maybe a little specific, but I think it's interesting from a general pov also.
In a Rails App users can subscribe to other users. When I show a list of users I have to check, if the current user has subscribed to the users in the list. If he has subscribed, I show the unsubscribe button and the other way around.
B...
I have an application that receives messages from devices every few minutes. I also have clients that request the last 10 messages for a particular device.
I am suffering with some database saturation and I wish to cache this list by device. The basic premise is that when a message is received from the device then the processor that rec...
I have a landing page on rails with "blog" style posts. Since it's the most visited page on the site, I'm using action caching. The cache is cleared upon a change of the model.
However, when adding new blog posts, i'd like to be able to create posts in the --future-- (a la queueing posts in Tumblr).
So simply observing the model won't...
Hi guys!
Here is the thing. Right now I have this e-commerce web site where people can send a lot of pictures for their products. All the images are stored at Amazon's S3. When we need a thumbnail or something, I check over S3 if there is one available. If not, I process one and send it to S3 and display it on the browser. Every differe...
The documentation of the enterprise library says :
Because of the way the Cache object operates, you are guaranteed
that any backing store will be called
in a single-threaded manner. This
means you do not have to make your
implementation thread safe.
And concerning the CacheManager :
Every method call made through the
...