I need to test if my 304 responses are working, but my development environment is pretty hard set on force no-cache.
Is there an easy way to modify the max-age value of the cache-control header before it goes out?
I'm perhaps a bit optimistic in hoping chrome (or an extension, or FF) has a console command letting me alter the if-modi...
Hi !
I'm working with web2py and for some reason web2py seems to fail to notice when code has changed in certain cases. I can't really narrow it down, but from time to time changes in the code are not reflected, web2py obviously has the old version cached somewhere.
The only thing that helps is quitting web2py and restarting it (i'm u...
I am using Html.RenderAction<CartController>(c => c.Show()); on my master Page to display the cart for all pages. The problem is when I add an item to the cart and then hit the browser back button. It shows the old cart (from Cache) until I hit the refresh button or navigate to another page.
I've tried this and it works perfectly but it...
I have strange discarding behavior of struts2 while setting cache option for my image.
I'm trying to put image from db to be cached on client side
To render image I use ( http://struts.apache.org/2.x/docs/how-can-we-display-dynamic-or-static-images-that-can-be-provided-as-an-array-of-bytes.html ) where special result type render as foll...
I've the following function:
function Cache($key, $value = null, $ttl = 60)
{
if (isset($value) === true)
{
apc_store($key, $value, intval($ttl));
}
return apc_fetch($key);
}
And I'm testing it using the following code:
Cache('ktime', time(), 3); // Store
sleep(1);
var_dump(Cache('ktime') . '-' . time()); ec...
I am making a static site which is 'forced' to be cached via Cache-control, etc.
When a user visits my site, I want the browser to crawl my site, caching pages, so when the user navigates to a page, the load is almost instant.
(I do not need a recursive crawl, as that will probably happen as the user navigates between pages. I just ne...
Task: (all in code, not visual) create a canvas, place into it some labels and draw some lines, then cache it as byteArray.
The problem is that if I cache an object that is already drawed on the screen, it works great, but if I cache a canvas, that have been created few lines earlier, this results white image.
Is there any solution to...
I have this code to get the Cursor once for this instance, and the Log shows it is called many times although I marked as final. What I am missing?
private Cursor getAllContactsCached() {
final Cursor c=this.getList();
return c;
}
getAllContactsCached method should retrieve list once, and the 2nd time it should re...
I'm getting no improvement in speed when using Ehcache with Hibernate
Here are the results I get when i run the test below. The test is reading 80 Stop objects and then the same 80 Stop objects again using the cache.
On the second read it is hitting the cache, but there is no improvement in speed. Any idea's on what I'm doing wrong?
...
Hi Everyone,
I have this in my production environment:
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
How do I completely clear the cache so changes I deploy take effect? I have added content to one of the pages but it doesnt seem to show up since ...
In Android's settings, in the "Manage Applications" activity when clicking on an app, the data is broken down into Application, Data, and cache. There is also a button to clear the cache. My app caches audio files and I would like the user to be able to clear the cache using this button. How do I store them so they get lumped in with ...
Situation:
I am developing a Silverlight-Application which needs Component based on a local HTTP Listener.
The HTTP-Listener can't be 'required' to be installed and running when the Application starts, so the Application does the following:
Handshake via HTTP POST
If Connection failed open a Click-Once Setup to install the component....
I've got a custom HttpHandler in my ASP.NET application, that basically builds and returns a javascript object. I have no experience with server-side caching, and my (possibly incompetent) google searches aren't returning anything basic enough to get me started.
Could anyone provide a very simple example to give me an idea of how to ac...
I would like to use output caching with WCF Data Services and although there's nothing specifically built in to support caching, there is an OnStartProcessingRequest method that allows me to hook in and set the cacheability of the request using normal ASP.NET mechanisms.
But I am worried about the worker process getting recycled due to ...
Hi,
I want to disable the cache in the template system Dwoo.
Just for my dev mode.
But then I tried to invoke setcache () or modify Dwoo classes and nothing works.
Someone has an idea?
Thank you
...
I would like to be able to take advantage of the benefits of GIT (and its workflows), but without the cost of disk access - I just would like to leverage the distributed revision control capabilities of GIT to produce something like a hybrid of memcached and GIT. (preferably in .NET)
Is there such a beast out there?
...
Has anyone else having an issue with browser caching when using .net?
I am using VS 2008 and IE8. And I include all the recommended code
to ensure that there is no caching, still 20% of the time, I get cached values. This was never an issue with classic asp. Any ideas?
...
I'm troublehooting an instance where IE8 is rendering cached data. FF & Chrome don't having problems keeping up.
The page flow goes like this...a dropdown list box selection is submitted and server side writes back a few fields based on the selection. Then other stuff happens. This is a multi-step checkout process - first step establish...
Hello Experts,
I am facing this issue with expiration-cache in my portlet (jsr 286 - Spring MVC). The configuration in my portlet.xml is 300
My portlet is also a Producer portlet in a Inter portlet communication scenario.
I am trying to use expiration-cache in order to stop this portlet rendering when there is change on some other portle...
Here's script being called through ajax:
<?php
require_once '../app/Mage.php';
umask(0);
/* not Mage::run(); */
Mage::app('default');
$cat_id = ($_POST['cat_id']) ? $_POST['cat_id'] : NULL;
try {
$category = new Mage_Catalog_Model_Category();
$category->load($cat_id);
$collection = $category->getProductCollection();
...