<commit_before>imports:
    - { resource: config.yml }

framework:
    validation:
        cache: apc

doctrine:
    orm:
        metadata_cache_driver: apc
        result_cache_driver: apc
        query_cache_driver: apc

monolog:
    handlers:
        main:
            type:         fingers_crossed
            action_level: error
            handler:      nested
        sentry:
            type:  raven
            dsn:   %sentry.dsn%
            level: critical
        nested:
            type:  stream
            path:  "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
        console:
            type:  console

liip_cache_control:
    rules:
        - { path: /admin, controls: { private: true, max_age: 0 } }
        - { path: /preview, controls: { private: true, max_age: 0 } }
        - { path: ^/_internal, controls: {private: true, max_age: 0 } }
        - { path: ^/(.+), controls: { public: true, max_age: 360, s_maxage: 360 }, vary: [Cookie,Accept-Encoding] }<commit_msg>default foshttpcache bundle config ...<commit_after>imports:
    - { resource: config.yml }

framework:
    validation:
        cache: apc

doctrine:
    orm:
        metadata_cache_driver: apc
        result_cache_driver: apc
        query_cache_driver: apc

monolog:
    handlers:
        main:
            type:         fingers_crossed
            action_level: error
            handler:      nested
        sentry:
            type:  raven
            dsn:   %sentry.dsn%
            level: critical
        nested:
            type:  stream
            path:  "%kernel.logs_dir%/%kernel.environment%.log"
            level: debug
        console:
            type:  console

fos_http_cache:
    cache_control:
        rules:
            # match admin area
            -
                match:
                    path: ^/[^/]+/admin
                headers:
                    cache_control:
                        public: false
                        max_age: 0
                        s_maxage: 0
                    last_modified: "-1 hour"

            # match esi requests
            -
                match:
                    path: ^/_fragment
                headers:
                    cache_control:
                        public: false
                        max_age: 0
                        s_maxage: 0
                    last_modified: "-1 hour"

            # match everything to set defaults
            -
                match:
                    path: ^/
                headers:
                    cache_control:
                        public: true
                        max_age: 360
                        s_maxage: 360
                    vary: [Accept-Encoding, Accept-Language]
{'fraction_non_alphanumeric': 0.07863935625457205, 'fraction_numerical': 0.007681053401609363, 'mean_word_length': 1.0957854406130267, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4301596', 'n_tokens_mistral': 757, 'n_tokens_neox': 710, 'n_words': 174}