Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getScript: error when get cached utf-8 js in gbk page on ie6 #351

Closed
yiminghe opened this issue May 6, 2013 · 0 comments
Closed

getScript: error when get cached utf-8 js in gbk page on ie6 #351

yiminghe opened this issue May 6, 2013 · 0 comments
Milestone

Comments

@yiminghe
Copy link
Member

yiminghe commented May 6, 2013

KISSY Version :

<=1.3

Browsers :

ie6

What steps will reproduce the problem?

  1. prepare utf-8 script x.js

       KISSY.log('测试');
       window.x++;
  2. get the same script twice in gbk page

          window.x=0;
          var js='../specs/getScript/x.js';
          S.getScript(js, {
              charset: 'utf-8',
              success: function () {
                  expect(window.x).toBe(1);
                  setTimeout(function () {
                      S.getScript(js, {
                          charset: 'utf-8',
                          success: function () {
                              expect(window.x).toBe(2);
                              ok = 1;
                          }
                      });
                  }, 500);
              }
          });

Expected

window.x==2

actual

window.x==1; error occurs.
#1.3 workaround

KISSY.config('tag',KISSY.now()); 测试环境永不缓存

线上代码要压缩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant