Chrome: Improved file and cache saving trick

Last update: February 26
  • Chrome allows you to limit and clear the cache to save space and improve browser and system performance.
  • The browser offers advanced features for downloading, editing, and managing PDFs, including local OCR and saving to Google Drive.
  • The download and permission settings can be customized to control folders, multiple downloads, and automatic file opening.
  • DevTools with Workspaces connects local folders to save changes to HTML, CSS, and JS directly to the source code.

Chrome's improved file saving

If you use the Google browser daily, you've probably noticed that Chrome handles and saves files in a thousand different ways.Downloads, cache, PDFs, extensions, changes in DevTools... and each of these parts influences how fast your computer runs and how comfortably you work with your documents.

Although it may seem like a simple program from the outside, inside Chrome has a lot of features for better control where files are stored, how much space they take up, and how they are synchronizedUnderstanding these options allows you to save disk space, improve performance, work more comfortably with PDFs, and organize everything you download from the internet more intelligently.

Why can Chrome take up so many files and so much space?

As you browse websites, watch YouTube videos, or binge-watch series on Netflix, Chrome stores cached files, cookies, and site data so that pages load faster and the experience is smoother.

The problem is that, over time, That cache can grow to several gigabytes without you even noticing.On an SSD with limited space, this represents a significant waste and can also slow down the browser and the computer itself.

Ideally, the Chrome cache size should be kept around 200 to 500 MB maximumHowever, on many devices it reaches 3 GB or even more, which doesn't make much sense and can cause performance bottlenecks, especially if you tend to work with several heavy applications at the same time.

The good news is that Chrome and Windows offer options so you can limit the cache size and empty it when you want, without having to install extra programs or complicate your life with strange tools.

How to view and clean the data and files that Chrome stores

Before setting limits, it's important to know What exactly is taking up space inside Chrome?The browser itself has a panel where you can see, almost site by site, how much data each website is storing.

To check it, just type it into the address bar. chrome://settings/content/allThat page shows a complete list of websites and services that you have been visiting and that store data in your browser, along with the size they occupy.

From there you can delete the data from each site individually Use the trash can icons if you only want to clean up specific pages you no longer use. And if you prefer a clean slate, you also have the option to “Delete all data” to empty the stored information all at once.

This first review serves both to recover some space and to to be clear about which websites are filling up the cache the mostFrom there, you can consider setting a fixed limit on the maximum size of that cache, so that it doesn't get out of control in the future.

How to limit Chrome's cache from the shortcut

A relatively simple way to control how much the cache can grow is to add a special parameter in the Chrome shortcutso that the browser itself never exceeds the size you set.

On Windows, locate the Chrome shortcut you usually use (for example, the one on your desktop), right-click on it, and enter "Properties"Then go to the tab "Direct access" and look at the field "Destination", where the path to the Chrome executable appears.

At the end of that line, after the closing quotation marks of the path, you have to leave a blank space and add the parameter –Disk-cache-size = 209715200Very important: Don't forget to leave a blank space before the two dashes.or the system will not interpret it correctly.

In that parameter, the number 209715200 indicates the maximum cache size expressed in byteswhich is equivalent to about 200 MB. If you want to allow more, you can use, for example, 524288000 for 500 MB o 629145600 for 600 MBWhen you're finished, press “Apply” and then “OK” To save the changes.

From that moment on, Chrome will respect that cache limit When you open it with that shortcut, it prevents temporary data from running rampant and uncontrollably consuming your disk space.

Set a permanent cache limit from the Windows Registry

If you prefer a more in-depth adjustment that doesn't depend on a specific shortcut, you can configure a permanent value from the Windows RegistryIt's a slightly more technical method, but very useful if the shortcut parameter doesn't convince you or doesn't apply as you expected.

Before touching anything in the Registry, it is recommended that make a backupin case you need to go back. Then, open the Registry Editor from the Start menu (searching regedit) and navigate to the key Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome.

In that path, in the right panel, right-click and choose New> DWORD value (32 bits)Give it a name DiskCacheSizeOnce created, double-click on it and write the maximum size value in bytes just as in the case of direct access (for example, 209715200 for 200 MB).

After you save the value and close the Registry Editor, restart your computer for the change to take effect. From that point on, Chrome will use the limit defined in the Registry without having to add parameters to the command line of the shortcuts.

With this technique, the cache limit will be maintained even if you change shortcuts, update Chrome, or modify other settingsThis provides greater stability to the adjustment on equipment you use daily for work or study.

New features in Chrome for working better with PDFs and documents

In addition to managing cache and downloads, Google has recently been strengthening Chrome's features related to PDF documents so you can work directly from the browser without relying on third-party applications.

Among these improvements, one of the most useful is the ability to Add annotations, highlights, and digital signatures directly to PDFs Open them in Chrome. This way you can review reports, fill out forms, or sign documents without having to download and open them with another program.

Chrome has also improved the integration with Google Driveso that saving a PDF to the cloud is as simple as a few clicks from the viewer itself. These files can be automatically stored in a specific folder called “Saved from Chrome”helping to prevent them from getting mixed up with other downloads.

Another important new feature focused on productivity is the function known as “Split View” or split screenwhich allows you to view two tabs at the same time within the same Chrome window, without having to keep switching between them.

According to Google, this tool emerged to answer Frequent complaints from users who are forced to juggle multiple windows and tabsconstantly losing track of what they were doing. In initial tests, the company detected a clear improvement in task management and multitasking capabilities.

Productivity features: split screen and PDF annotations

Chrome's split-screen view is designed so you can consult two resources at the same timeFor example, having a PDF document open in one tab while drafting an email or a report in another.

This view offers a more organized way of working than opening several windows floating on the desktopEspecially on laptop screens where space is limited. This reduces the time you spend switching tabs and minimizes distractions.

In parallel, Chrome's built-in PDF annotation tool lets you Highlight, comment, and sign documents without leaving your browserFor those who work daily with reports, contracts, or forms, this greatly streamlines workflows.

All of this is part of Google's goal to turn Chrome into something more than just a simple gateway to the Internetpositioning it as a platform where you can review documents, collaborate, and organize tasks without leaving the browser environment.

According to the company itself, these features have been rolled out after gathering feedback from users who needed them. More powerful tools for remote work and digital collaboration, which are already very common in the day-to-day operations of many companies.

How to efficiently download and save files in Chrome

Beyond caching, one of the most basic uses of the browser is, clearly, Download files and save them to your device.Chrome offers several ways to do this depending on the type of content, as well as options to customize the folder where they are stored.

To start a standard download, on most pages you just need to Click on the corresponding download linkAlternatively, you can use the context menu by right-clicking on the link and selecting "Save as" to directly choose the name and location.

If you want to store an image, you can Right-click on the photo and click on “Save image as”In the case of embedded videos, if the site allows it, when you hover your cursor over the video you will see an option to downloadIf it doesn't appear, it's usually because the website or the content owner has blocked that possibility.

For PDFs, in addition to the built-in view, you have the option to Right-click on the document link and select “Save link as” to download the file directly, without needing to view it in the browser first.

When Chrome starts downloading something, a download icon in progress in the upper right corner, next to the address bar. Once completed, it opens the downloads tray, from where you can open the file with a single click.

Advanced PDF functions: editing, OCR, and saving

Google hasn't just stopped at allowing you to view PDFs: it has enhanced its viewer so you can edit and save modified versions directly from Chrome.

If you access an online PDF form, you can to type in the fields from the browser itself And when you're finished, use the option to “Download edited” to save the file with all the changes you have made to your computer.

Additionally, when you open PDFs in Chrome that come from scanned physical documentsThe browser automatically applies a process of optical character recognition (OCR)Thanks to this, these PDFs become searchable and selectable: you can highlight text, copy it, paste it, or locate specific words within the document.

It is important to note that The entire conversion process is done locally on your device.without sending the PDF content to Google servers or third parties, which helps maintain the privacy of the information, especially if it is sensitive documentation.

Once you have downloaded the edited PDF, you can open it at any time and continue modifying iteither from Chrome again or from another compatible program, such as an advanced PDF reader.

Configure the download folder and behavior in Chrome

By default, Chrome saves everything you download in a default folder, but you can change that route to adapt it to your way of working or even make the browser ask you every time where you want to save a file.

On a computer, go to "Configuration" From the Chrome menu (top right) and, within the options, go to the section "Downloads"There you can see the current folder where your files are being stored.

If you want to modify it, click on "Change" and choose another system location, for example, a specific folder for projects, a path on another disk, or even a folder synchronized with the cloud to have the downloads available on multiple devices.

If you prefer to have control over each download, you can activate the option "Ask where each file will be saved before downloading it"This way, every time you download something, Chrome will show you a dialog box to choose a folder and name.

This configuration helps you avoid a chaotic mess of files in the same folder and makes it easier maintain a more logical system of order by projects, clients, or document types.

Default download locations based on operating system

If you've never touched the download settings, Chrome uses different default folders depending on the operating system that you are using on your computer.

In Windows 10 and later versions, files are typically saved in \Usuarios\<nombredeusuario>\Descargas, which usually also appears as “Downloads” in the file explorer.

On macOS, the usual path is /Users/<username>/Downloadsaccessible from the Finder in the user folder. And on Linux systems, Chrome normally downloads everything to /home/<username>/Downloads, visible from your desktop environment's file manager.

Knowing these routes will allow you locate old downloads even if you don't remember where you put them, especially if you've never changed the default folder in your browser settings.

Download permissions and multiple file management

Chrome also has security controls related to multiple and automatic downloadsso that websites cannot download files from you without your consent.

If you want to adjust these permissions, open Chrome on your computer, go to "Configuration" and look for the section "Privacy & Security"From there, access “Site settings” and, inside, to “Additional permissions > Automatic downloads”.

In this section you can define whether or not you allow sites to download multiple related files consecutivelyThis can be useful on trusted websites but dangerous on dubious ones. Adjusting this behavior gives you extra control and security.

To manage downloads that are already in progress, look at the top right of the browser, where it shows the panel with the list of recently downloaded filesWhen you hover your mouse over a file name, you will be able to pause, resume, or cancel the download as it suits you.

If you want to review what you've downloaded in the last few days or months, open the Chrome menu and click on "Downloads"From that page you can Open each file with one click Or, if you're looking to clear your history, use the option to "Put off" next to each one. Keep in mind that this removes it from the list, but It does not delete the physical file from your computer..

Advanced PDF control: permissions and automatic opening

In addition to deciding where files are stored, you can fine-tune how Chrome behaves with certain types of content, such as PDFseither to download them permanently or to view them in the integrated viewer.

In the site settings and downloads, you'll find options for define the default behavior of PDF filesFor example, you can choose to always open them with the Chrome viewer or to download them automatically.

If you've ever specified that a file type should always open with a particular application and now want to undo it, you can disable automatic openingTo do this, download another file of that type, go to the list of recent downloads, right-click and uncheck the option “Always open files of this type” if it appears marked.

This small adjustment prevents third-party programs from opening every time you download something, which can be especially annoying with PDFs or images that you just want to save and review later at your leisure.

By combining these permission options with those for folder and download behavior, you achieve the following: Chrome adapts exactly to the way you manage documentsinstead of having to correct their behavior every time.

How to save changes to local files from Chrome DevTools

If you develop websites or like to tinker with code, Chrome DevTools includes a very powerful feature called Workspaces or workspaceswhich allows you to save the changes you make to CSS, HTML, and JavaScript directly to your computer.

The idea is to connect a folder on your computer to DevTools so that when you edit a file from the panel Sources, those changes save to the actual disk filenot only in the version loaded in the browser.

For example, imagine you have your website code in a local folder, you are running a web server on localhost and you access your site from Chrome. If you connect that folder as a workspace, every CSS or JS modification you make in DevTools will be reflected in the live project.

However, it's worth knowing that DevTools does not save changes made to the DOM from the "Elements" panel.because that tree can be heavily manipulated by JavaScript and CSS and it is not always possible to return exactly to the original source file.

To facilitate this type of mapping between optimized code and source code, DevTools makes use of source maps, very common in modern frameworks that transform the code before sending it to the browser.

Automatically connect a folder to the Workspace using a JSON file

One way for DevTools to automatically discover your workspace folder is to generate a special JSON file with metadata and serve it from your local server along with the rest of the site.

First you must generate a random UUID version 4which will act as a unique identifier for your Workspace. Then, you create a JSON file with a structure similar to:

{"workspace":{"uuid":"UUID","root":"path/to/project/root/folder"}}

In that JSON, the field “uuid” will contain the generated identifier and the value of "Root" This will be the path to the project's root folder in your file system, where your code is located.

Next, place that file in the path path/to/project/root/folder/.well-known/appspecific/com.chrome.devtools.json within your project and make sure that your the local HTTP server serves it correctly.

When you access the site from Chrome, DevTools will be able to automatically discover that folder and suggest connecting it as a workspace, so you don't have to configure it manually each time.

Connect to and use a Workspace folder from DevTools

If you don't want to use the JSON file or prefer to do it manually, you can also connect a folder directly from DevTools in a few steps.

From the page you are testing locally (for example, localhost:8000), opens Chrome DevTools and go to the panel “Sources” > “Workspace” or “Workplace”. There you will see the option to "Connect" next to your folder if it was detected automatically, or “Add folder manually”.

When you click on “Connect” or when adding the folder manually, DevTools will ask for permission to edit files in that locationAccept the request (click the “Edit files” button) so that the tool can save changes to your system.

Once the folder is connected, you can open it from the tab “Workspaces” and you'll see green dots next to the HTML, CSS, and JavaScript files that DevTools has managed to map with the network resources loaded on the page.

From then on, any changes you make and save (for example with Ctrl/Cmd + S) self It will write directly over your source files., thus integrating the browser into your normal development workflow.

Save changes to CSS, HTML, and JavaScript from DevTools

With the folder now connected, you can edit your styles, HTML, or JavaScript from DevTools and Save the changes just as you would in a code editor.but seeing the result in real time in the browser.

In the case of CSS, open the corresponding file from Sources > WorkspacesModify the rules that interest you and, when you like the result, save with the usual key combinationThe change will be applied to the physical file without needing to reload the page.

For HTML, the process is similar: you open the file from the Workspace, adjust the markup, and then save with Ctrl/Cmd + SIn this case, you will have to Reload page so that the browser rebuilds the DOM with the new version.

In JavaScript, you edit the file from the Workspace, save the changes, and, depending on how your local server is configured, you might The page will automatically reload or that you have to force a reload or redeploy yourself to see the new behavior.

DevTools also offers a side panel and the ability to reorder tabs So that, while you're modifying JS, you can have the Elements or Console tools at hand, making debugging and quick testing easier.

Workspace limitations and differences between HTML and DOM

Although Workspaces are very powerful, it's important to be clear about some things. limitations and particularities of how Chrome handles content of the pages.

The first thing to understand is that the tree you see in the panel "Items" represents the resulting DOMThat is, the final state of the page after applying HTML, JavaScript, and CSS. This DOM can be quite different from the original HTML downloaded from the internet.

The browser receives an HTML file, parses it, and creates a DOM node treeFrom there, if there are scripts, they can add, remove, or change nodes. Even CSS, through the property contentIt can alter what is represented. Therefore, The final DOM does not necessarily match the source HTML line by line..

Because of this difference, DevTools cannot know for sure. where to save a change you make directly to the "Elements" panel treesince this change could come from HTML, a script, or dynamic styles.

In summary, when you need a change to be saved in your files, the recommended course of action is edit from the “Sources” panel on the source filesand not about the DOM, which should be understood more as a live representation of the page than as the codebase.

Remove a folder from the workspace and manage projects

If at any point you stop using a project or no longer want a folder linked to DevTools, you can Disconnecting the connection is very simple. from the Workspace panel itself.

En Sources > WorkspaceRight-click on the connected folder and select “Remove from workspace”By confirming in the pop-up window, DevTools will stop mapping those files and no changes to them will be saved.

You should also know that if You modify or delete the UUID in the metadata JSON file As we mentioned before, the folder will automatically disconnect, as the reference that Chrome uses to identify it will be lost.

To see at a glance all the folders you already have configured as your workspace, you can go to “Settings > Workspace” within DevTools, where it will appear a list of all active routes and you will be able to manage them centrally.

If you're interested in experimenting without touching the actual source code, Chrome offers another option called “Local cancellations”which allows simulating changes to web content or request headers that are maintained between reloads, but without being written to your project filesIt's a very useful tool when you want to test things without compromising the repository or while waiting for backend updates.

Mastering these Chrome features related to caching, downloads, PDFs, and Workspaces allows you to get much more out of the browser, keep the space it occupies under control, work faster with documents and develop or debug websites with a much smoother and more professional workflow.