Questions tagged as 'cache'

0
answers

caches_page in rails 3 does not work in production [closed]

In development, caches_page works normally, but in production, it creates the cache and rewrites the cache to each access. Anyone have any idea how this issue can be resolved? My config / production.rb file: AppRuby::Application.configure d...
asked by 03.06.2014 / 03:29
1
answer

Differences between Cache and CDN usage

What are the advantages and disadvantages of using Content Delivery Network (CDN) and Cache and how can they complement each other?     
asked by 11.03.2017 / 14:47
1
answer

Store / Load generic types in Redis with C #

Scenery I created a function using AOP to do information cache, when the method is called I store in Redis using cache.StringSet , but when I need to capture back the value of Redis I need to return the same type as I received, I know...
asked by 11.12.2017 / 19:32
1
answer

solve google speed insights problem

google speed insights shows this error: "Take advantage of browser cache Setting an expiration date or a maximum age in HTTP headers for static features instructs the browser to load previously downloaded resources from the local disk and not th...
asked by 27.08.2018 / 16:41
1
answer

Save data from a Game in Html5 and Javascript [closed]

I would like to know how I can cache a project of mine, because the game works normally, but when I refresh the page, all progress is lost, I would like to know how I can cache this progress is saved in the user's browser. Note: for examp...
asked by 03.11.2016 / 14:49
1
answer

Optimizing Memory Usage Cache

I got a code implementing Dijkstra in C, and my mission is to optimize this code. The code is this: #include <stdio.h> #include <stdlib.h> #include <string.h> #define NUM_NODES 1000 #define NONE...
asked by 19.10.2015 / 03:08
1
answer

Bundle / Cache of CSS files in PHP

I'm developing a mechanism in PHP that performs a cache of CSS files in order to decrease the number of requests of a page and the loading time. The engine evaluates in a first entry whether there is any cache file on the...
asked by 10.08.2015 / 13:44
0
answers

What is the best strategy for updating data only when necessary?

In an application with React Native , using Redux and Redux-Persist , what is the best way to identify that content needs to be updated? In my case, I have an application that makes some requests on start up. When I enabled...
asked by 16.09.2017 / 17:27
0
answers

Varnish working only with Curl

Good morning, this is my scenario, I am using laravel 5.3 and Varnish 5, I created a middleware that passes a response with the following Headers X-Cacheable:1 Cache-Control:max-age=300, public No Varnish vcl on vcl_backend_response if (b...
asked by 09.09.2017 / 13:59
2
answers

How do I not cache image cache with HTML or PHP?

I'm creating a web page that is almost just image, every day I change the images of the page but their name remains the same. The browser is caching a lot and every time I update the images they do not change visually if you have already accesse...
asked by 13.06.2014 / 16:17