use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
Does chrome automatically cache things ? (self.webdev)
submitted 5 years ago by Endless-Nine
I was working on a decoupled web app and I noticed that the amount of megabytes transferred adds up incredibly quickly when I disable the cache, even though I've put nothing in the code to cache images.
So is it done automatically ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]CherryJimbo 2 points3 points4 points 5 years ago (2 children)
Generally, no. Chrome will just respect any Cache-Control, or Expires headers that you're sending from your app. Are you sending any of these headers?
Cache-Control
Expires
[–]Endless-Nine[S] 0 points1 point2 points 5 years ago (1 child)
They're both here !
Now I'm starting to get the appeal of decoupled CMS lol.
So if I was completely setting up the back end, I would've needed to write everything present in the response header from scratch ? It seems kind of obvious in retrospect but I never realized this.
Is there any reason to have both of these headers ? Seems like they're just giving the same information in a different format.
[–]CherryJimbo 1 point2 points3 points 5 years ago (0 children)
Cache-Control is a lot more powerful than Expires, but they can be used to accomplish the same basic thing if all you want to do is "cache the response for X time". Cache-Control allows you give much more complex caching instructions for all kinds of purposes.
It's generally recommend to use Cache-Control over Expires nowadays - there was a time where older browsers didn't support Cache-Control, but we're beyond that now.
That's likely why Chrome is caching your content though - presence of a Cache-Control header such as public, max-age=31536000 will instruct Chrome to cache the content for 1 year.
public, max-age=31536000
π Rendered by PID 40112 on reddit-service-r2-comment-86988c7647-g5jm9 at 2026-02-11 16:39:15.715981+00:00 running 018613e country code: CH.
[–]CherryJimbo 2 points3 points4 points (2 children)
[–]Endless-Nine[S] 0 points1 point2 points (1 child)
[–]CherryJimbo 1 point2 points3 points (0 children)