Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Changing JS files can make combining/minification produce reference errors #881

@GoogleCodeExporter

Description

@GoogleCodeExporter
1. make an HTML file referencing scripts a.js and b.js
2. enable rewrite_javascript and combine_javascript (both in core now)
3. rewrite the HTML file producing combined minified URL e.g.
   a.js,Mjm.HASH.js+b.js,Mjm.HASH.js.pagespeed.jc.HASH.js
4. somehow the metadata cache for the combination stays present but
   the http cache and the metadata cache for the minifications
   is flushed
5. change an identifier in a.js
6. refetch the combined minified file

I believe this will result in ReferenceErrors e.g. mod_pagespeed_63jkvFJpbY1 is 
not defined.

This has not been repro'd yet but should be easy to unit test.

Original issue reported on code.google.com by jmara...@google.com on 31 Jan 2014 at 2:07

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions