Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 523465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:27:55+00:00 2026-05-13T08:27:55+00:00

I observed chunks like below sometimes on web pages. So i am curious to

  • 0

I observed chunks like below sometimes on web pages. So i am curious to know what this really does? or why its written in such a way?

<script src="somefile.js?param1=one&param2=two" />

i can only make out following few intentions behind it

  • Its not page URL (i mean .aspx/.php/.jsp etc.) so its not hacking kind of code where user can add code like this to pass data without getting users attention as its tag which does not render on UI OR implementing old type of AJAX alternative
  • This kind of URL param are useful if user do not wish the JS file (any other resource like image) to get cached. This can be quick way to manage caching

But i am unable to figure out following

  • Looks like page URL parameters but are these parameters anyway readable in JavaScript file and have some additional utility?
  • Do these parameters have any extra role to play here ?
  • What are the other possible practical scenarios where code like this can be/is used?

So please provide some inputs related with the same

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:27:55+00:00Added an answer on May 13, 2026 at 8:27 am

    Running Non-JS Code within .js Extensions

    In cases like this, that source .js file might (given proper server-configurations) actually have PHP/.NET code within it, which can read those appended values.

    As you said, Avoiding Cache…

    Additionally, people will at times append a random string at the end of their referenced elements to avoid loading cached data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have observed that, very infrequently, Internet Explorer (7 or 8, it does not
This is a common question, but the explanations found so far and observed behaviour
I observed the NSLog() does log all my messages with error level Warning but
I've observed that, in Google Chrome, setting an <option> as selected via Javascript does
I observed something last week that I did not expect, and will describe below.
I observed this strange behaviour of center method of str objects in python 2.7
There are two places where I have observed this. Both are AJAX calls which
I've observed this in Firefox-3.5.7/Firebug-1.5.3 and Firefox-3.6.16/Firebug-1.6.2 When I fire up Firebug: var x
I know from what I have observed, and from what people are saying on
I observed from WhatsApp such behaviors: when a new message arrives, WhatsApp will launch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.