2017 © Pedro Peláez
 

symfony-bundle html5-cache-bundle

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

image

evheniy/html5-cache-bundle

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 2 % Grown

The README.md

HTML5CacheBundle

This bundle provides HTML5 Application Cache for Symfony2, (*1)

knpbundles.com, (*2)

Latest Stable Version Total Downloads Latest Unstable Version License, (*3)

Build Status Coverage Status Scrutinizer Code Quality Build Status, (*4)

Installation

$ composer require evheniy/html5-cache-bundle "1.*"

Or add to composer.json, (*5)

"evheniy/html5-cache-bundle": "1.*"

AppKernel:, (*6)

public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\HTML5CacheBundle\HTML5CacheBundle(),
        );
        ...

config.yml:, (*7)

#HTML5CacheBundle
html5_cache: ~

or

#HTML5CacheBundle
html5_cache:
    cdn: cdn.site.com
    http: true
    https: false
    custom_urls:
        - https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js
        - ...

layout.html.twig:, (*8)

<html{{- cache_manifest()|raw -}}>
...

The last step, (*9)

app/console manifest:dump

Documentation

You can use local CDN (domain):, (*10)

html5_cache:
    cdn: cdn.site.com

Default value is empty, (*11)

You can set protocols for local CDN:, (*12)

html5_cache:
    cdn: cdn.site.com
    http:  true
    https: false

Default value: true (for both), (*13)

You can set custom urls:, (*14)

html5_cache:
    custom_urls:
        - https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css
        - https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js
        - ...

Default value is empty, (*15)

Partial using

layout.html.twig:, (*16)

<html{%- block cache_manifest -%}{%- endblock -%}>
...

page_with_cache.html.twig:, (*17)

{%- extends "layout.html.twig" -%}
{%- block cache_manifest -%}{{- cache_manifest()|raw -}}{%- endblock -%}
...

page_without_cache.html.twig:, (*18)

{%- extends "layout.html.twig" -%}
{%- block cache_manifest -%}{%- endblock -%}
...

JqueryBundle

If You are using JqueryBundle, this url:, (*19)

https://ajax.googleapis.com/ajax/libs/jquery/{JqueryBundle.config.version}/jquery.min.js 

will be inserted automatically, (*20)

TwitterBootstrapBundle

If You are using TwitterBootstrapBundle, those urls:, (*21)

- https://maxcdn.bootstrapcdn.com/bootstrap/{TwitterBootstrapBundle.config.version}/css/bootstrap.min.css
- https://maxcdn.bootstrapcdn.com/bootstrap/{TwitterBootstrapBundle.config.version}/css/bootstrap-theme.min.css
- https://maxcdn.bootstrapcdn.com/bootstrap/{TwitterBootstrapBundle.config.version}/js/bootstrap.min.js

will be inserted automatically, (*22)

MaterializeBundle

If You are using [MaterializeBundle][7], those urls:, (*23)

- https://cdnjs.cloudflare.com/ajax/libs/materialize/{MaterializeBundle.config.version}/css/materialize.min.css
- https://cdnjs.cloudflare.com/ajax/libs/materialize/{MaterializeBundle.config.version}/js/materialize.min.js

will be inserted automatically, (*24)

License

This bundle is under the MIT license., (*25)

Документация на русском языке, (*26)

Demo - Open page, then turn off network and update page, (*27)

HTML5 Application Cache, (*28)

The Versions

09/04 2018
22/02 2017

1.3.0

1.3.0.0

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

  Sources   Download

MIT

The Requires

 

The Development Requires

cache symfony html5 html5 application cache cache manifest

22/02 2017

1.4.0

1.4.0.0

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

  Sources   Download

MIT

The Requires

 

The Development Requires

cache symfony html5 html5 application cache cache manifest

02/12 2015

1.2.0

1.2.0.0

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

  Sources   Download

MIT

The Requires

 

The Development Requires

cache symfony html5 html5 application cache cache manifest

01/09 2015

1.1.1

1.1.1.0

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

  Sources   Download

MIT

The Requires

 

cache symfony html5 html5 application cache cache manifest

06/05 2015

1.1

1.1.0.0

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

  Sources   Download

MIT

The Requires

 

cache symfony html5 html5 application cache cache manifest

26/04 2015

1.0.1

1.0.1.0

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

  Sources   Download

MIT

The Requires

 

cache symfony html5 html5 application cache cache manifest

25/04 2015

1.0

1.0.0.0

The HTML5CacheBundle adds the ability to add HTML5 Application Cache to your application.

  Sources   Download

MIT

The Requires

 

cache symfony html5 html5 application cache cache manifest