38,352 questions
Best practices
0
votes
0
replies
20
views
Repository pattern + useAsyncData + Pinia store, hydration + caching problems?
We follow this article to write all our API calls https://medium.com/@luizzappa/nuxt-3-repository-pattern-organising-and-managing-your-calls-to-apis-with-typescript-acd563a4e046 so we can fetch a ...
1
vote
0
answers
49
views
typeorm cache automatically adds pagination suffix
In a nestjs application we have just started implementing typeorm db layer cache
as per docs here - https://orkhan.gitbook.io/typeorm/docs/docs/query-builder/6-caching
this is the only instance where ...
0
votes
0
answers
33
views
I have an ASP.NET Core application that uses Redis as cache but it is recently facing a lot of timeout exceptions
Redis has been recently facing a lot of timeout errors. We are currently using stackExchange.redis or managing Redis in the ASP.NET Core application.
We have used async whenever possible with proper ...
0
votes
0
answers
24
views
How to prevent Azure front door caching a SPA index.html
I have an Azure front door (afd) with a route and rule set to serve a SPA, as is quite normal, I don't want the index.html cached but do want all the other files cached. I created a rule-set and rules ...
1
vote
1
answer
193
views
How to benchmark atomic<int> vs atomic<size_t>?
I have a bounded queue with small size that definitely fit in int. So I want to use atomic<int> instead of atomic<size_t> for indexing/counter, since int is smaller it should be faster.
...
0
votes
0
answers
30
views
Revoking Connected Devices: How to Invalidate IMemoryCache Immediately to Prevent 2-Minute Access Window?
Hey i was building a DeviceService to know Connected Devices to an account after i builded every thing now i got issue with revoking device
Main Confusion :
that i decided to use IMemoryCache to ...
-1
votes
0
answers
112
views
Next.js 16 Partial Prerendering (PPR) + Cache Components: Why is my dynamic segment not streaming after first request?
I'm experimenting with Next.js 16's new Cache Components and Partial Prerendering (PPR) to build a product page that:
Serves a static shell instantly (HTML for layout, header, footer)
Streams the ...
0
votes
0
answers
45
views
How is cache line format defined if cache size is not a power of two? (Intel Core i5-1028NG7 L1 Data Cache 48KB) [duplicate]
I’m studying CPU cache design and I have a question about cache address breakdown when the cache size is not a power of two.
According to the Intel 10th Gen Core processor datasheet [1], my MacBook ...
4
votes
1
answer
105
views
create unlogged table automatically on postgres startup or atleast not lose them due to a restart
I tried postgres unlogged table for using them as a cache to speed up queries and it works (50% query time got avoided). I can really recommend that to everyone.
But I restarted the server (I mean the ...
0
votes
0
answers
33
views
Docker build fails with random “Hash Sum mismatch” errors on macOS
I'm trying to build a docker image on my Mac, but it fails at installing some linux deps. I think it's all pretty standard, and it works for my colleagues, on CI/CD (details below)
Relevant part:
FROM ...
0
votes
0
answers
49
views
WSO2 API Manager 4.5.0 – Out Flow mediation sequence not triggered when Response Caching is enabled
Everything works fine, caching is active and responses are served from cache.
However, when the response is served from cache (cache hit), the Out Flow (response flow) doesn’t execute at all — meaning ...
0
votes
2
answers
122
views
Angular + Nginx: some users get Unsupported Content-Type "text/html" loading chunk-*.js after deploy (chunk URL serves index.html)
Problem
After a deploy, a subset of users can’t load the app. For them, a specific old chunk URL (e.g. chunk-B3EQFA6E.js) returns index.html with Content-Type: text/html instead of JavaScript. That ...
0
votes
1
answer
85
views
.jsonDecode -> FormatException: Unexpected end of input (at character 1) ^. Error thrown
I keep facing same error seeing logs of firebase crashlytics.
.jsonDecode FormatException: Unexpected end of input (at character 1) ^. Error thrown .
.jsonDecode (dart:convert) ...
0
votes
0
answers
15
views
If cacheTag is used inside a forEach loop, will the returned data be cached within that functional scope? (Next.js 15 Canary)
I am currently using the Canary version of Next.js 15 to develop a project under the guidance of an instructor. I understand the general concept of using cacheTag to cache returned data. However, I am ...
1
vote
0
answers
53
views
xfun::cache_rds Take dependency on function definition
Suppose the following example:
library(xfun)
cp <- tempdir()
g <- function(x) x %% 2L
for(x in 1:2) {
i <- cache_rds(g(x), file = "my_cache.rds", dir = paste0(cp, "/"), ...
0
votes
0
answers
27
views
DragonFly Cache Optimisation
I'm working on a project where I need to apply LFU on the the value for each key. Value is something x. Now while adding value for that key, I need to delete those which has been used very less. We ...
1
vote
0
answers
25
views
the refresh_before option from MapProxy doesn't work
I've configured a WMS with MapProxy and I am currently working on the caching configuration.
The refresh_before option is explained in the documentation. As far as I understand, MapProxy only caches ...
0
votes
1
answer
77
views
why my bun with cache with docker is slower than node.js without a cache (i'm running both of them on localhost)
when i test my code with jmeter my average respond time on the bun with cache is higher that node.js that dont, i using 100 thread with period 1 second, but it seems the standard deviation is better ...
0
votes
0
answers
66
views
npm install fails with EEXIST / UNKNOWN error in Windows for Stencil web component project
I’m working on a Stencil web component inside a library that depends on other libraries maintained by my team. To get the latest versions of these components, I often need to delete node_modules and ...
0
votes
0
answers
59
views
Why is my Cloudflare Worker skipped on “/” when `index.html` is served from edge cache (`cf-cache-status: HIT`)?
I’m protecting documentation behind a Cloudflare Worker that enforces a login.
Route: docs.example.com/* → Worker
Expectation: unauthenticated HTML navigations (/, *.html) should be redirected to /...
1
vote
0
answers
69
views
Apache HttpClient 5 cache not removing expired resources from disk
My application needs to fetch resources (images, CSS, fonts, etc.) from given URLs and cache them locally based on the Cache-Control/ETag headers returned with the resource.
I’m using Apache ...
2
votes
1
answer
69
views
Spring Boot OAuth2 + MFA: Cached /oauth2/authorize request becomes null on server (works locally)
Body:
I developed an IAM system using Spring Boot where I integrated multi-factor authentication (MFA).
Here’s the flow I implemented:
A client sends a GET request to /oauth2/authorize.
This redirects ...
0
votes
1
answer
75
views
React app served via Nginx/Docker shows stale JS & CSS in normal browser but fresh in incognito
My React app is served with Nginx inside Docker (with correct cache-control headers), but the outer server-level Nginx acting as a reverse proxy strips/overrides those headers, causing browsers to ...
0
votes
0
answers
19
views
Questions about browser cache negotiation in Nuxt
I want to implement the cache negotiation for the public folder in the root directory. I configured it as follows in nuxt.config.ts. However, after running pnpm dev and pnpm generate, and then npx ...
0
votes
1
answer
233
views
How do I properly invalidate and clear a Caffeine cache
I am struggling to properly invalidate the cache.
import com.github.benmanes.caffeine.cache.Caffeine;
import com.github.benmanes.caffeine.cache.LoadingCache;
import java.util.*;
import java.util....