Css/js can be cached by browser, CDN or Varnish cache. If a new version css/js released, we want browser/CDN/Varnish request drupal to get new version.
Drupal will append a random string to css/jss url to work as cache buster.
[How to generate query string?]
This random string is stored in DB variable table by default, named as ‘css_js_query_string’. When common.inc drupal_flush_all_caches() is called, it will call _drupal_flush_css_js() then generate a random string with 6 characters.
We can also hard code the value in settings.php.
[How to use the query string?]
In common.inc drupal_pre_render_styles() function, it will call variable_get(‘css_js_query_string’,0) to get the value and append on each css.
分享到:
相关推荐
You will first learn how to set up and customize a basic blog using Drupal, one of the most powerful and popular content management systems available today. From there you will learn the basics of ...
- Various Drupal features require that the web server process (for example, httpd) be able to initiate outbound connections. This is usually possible, but some hosting providers or server ...
Drupal employs a specialized templating system and supports themes, which allow you to change the look and feel of the system's front and back-end interfaces. Drupal 6 Themes is an ideal introduction...
You will first learn how to set up and customize a basic blog using Drupal, one of the most powerful and popular content management systems available today. From there you will learn the basics of ...
With the combination of the powerhouse jQuery library with its own robust set of JavaScript tools, Drupal 6 comes with a pre-packaged killer JavaScript environment. Cross-platform by nature, it ...
Several projects point to a decoupled future for Drupal, including the Contenta CMS and work to modernize Drupal’s JavaScript using React. Begin learning about these and other exciting developments ...
drupal-scaffold, 使用 Drupal/core更新 Drupal scaffold文件的Composer插件 ...) 插件,用于自动下载Drupal脚本文件,通过编写器使用 drupal/core 。建议在 root root的项目的标准位置放置供应商目录;但是,供应商目
关于DropzoneJS这是DropzoneJS的Drupal 8集成。 ###如何安装:下载此模块下载DropzoneJS并将其放置在库文件夹中以通常方式安装dropzonejs删除“ test”文件夹f关于DropzoneJS这是DropzoneJS的Drupal 8集成。 ###如何...
Ideal for experienced Drupal developers, this book takes you through RWD basics and shows you how to build sites based on Aurora, Zen, and Omega—three popular base themes created by Drupal ...
"Enterprise Drupal 8 Development: For Advanced Projects and Large Development Teams" English | ISBN: 1484202546 | 2017 | 309 pages | PDF | 9 MB Successfully architect a Drupal 8 website that scales ...
Acquia drupal的初学者资料 Acquia Drupal is a commercially supported distribution of the open source Drupal [http://acquia.com/what-is-drupal] social publishing system. A packaged collection of the ...
10 Drupal UX Powerups 1. 登录/注册 查看 使用 尝试 , , 2. 表格验证 查看 使用 、 (谨慎)、电子邮件、日期等(+ 或 ) 尝试: , , 3. 错误信息 使用 (小心!)尝试: ...
With more and more organizations looking to build engaging digital experience for their stakeholders, the Drupal Content Management System offers a mobile-first platform with native support for ...
Drupal 7.x 的清漆 3.0 旨在与清漆、清除和过期模块一起使用。 根据 drupal.org/project/varnish 上的文档,您应该在 settings.php 文件中添加如下内容: $ conf [ 'cache_backends' ] = array ( 'sites/all/modules...
lightning-project, 一个基于作曲器的安装程序,用于 Drupal 8的闪电分配 这是一个基于的安装程序,用于的。 欢迎使用未来 !开始$ composer create-project acquia/lightning-project MY_PROJECTComposer将创建一个...
The Drupal Panels module allows a site administrator to create customized layouts for multiple uses. At its core, it is a drag and drop content manager that lets you visually design a layout and place...
Beginning Drupal 8 teaches you how to build, maintain, and manage Drupal 8-based web sites. The book covers what Drupal is, using Drupal when building a new web site, installing and configuring Drupal...
Drupal 8 Configuration Management is intended for people who use Drupal 8 to build websites, whether you are a hobbyist using Drupal for the first time, a long-time Drupal site builder, or a ...
What you'll learn What Drupal is and why you should use it How to ...the look and feel of your new Drupal web site through themes How to install and configure modules Who this book is for This book is ...